Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
2 of 2
2
when does an order become an order?
Posted: 11 August 2010 08:49 AM   [ Ignore ]   [ # 16 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

OK - having taken all payment gateways out, orders weblog is being populated as it purchased items weblog, however looking at the purchase history, I’m getting nothing returning.

Profile
 
 
Posted: 11 August 2010 08:50 AM   [ Ignore ]   [ # 17 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

When you say purchase history, are you using a weblog:entries tag? If so, try adding

show_future_entries="yes" dynamic="off" status="closed|open" 

to your tag and see if the orders show up.

Profile
 
 
Posted: 11 August 2010 08:59 AM   [ Ignore ]   [ # 18 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

I’m using this for history (this is spitting out 2 cart_item divs suggesting it’s getting something…

{exp:weblog:entries 
    author_id
="CURRENT_USER" 
    
weblog="purchased_items" 
    
dynamic="off" 
    
limit="250"
    
show_future_entries="yes"}
    
<div class="cart_item">
        
{embed="user/.product_file_lookup" entry_id="{purchased_id}"}
    
</div>
{/exp:weblog:entries} 

Product lookup has

{exp:weblog:entries limit="1" dynamic="off" entry_id="{embed:entry_id}"}
<class="download_item" 
    
href="{exp:cartthrob:view_download_link 
        template='{path=cart/download-file}' 
        file ='{product_download_url}'         
            member_id='{logged_in_member_id}'}"
>
    
{title}
</a>
{/exp:weblog:entries} 

I think it’s the product lookup file causing the issue.

Profile
 
 
Posted: 11 August 2010 09:06 AM   [ Ignore ]   [ # 19 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

You’ve got no weblog=”” in your product lookup.

Profile
 
 
Posted: 11 August 2010 09:08 AM   [ Ignore ]   [ # 20 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

See I thought that myself but there wasn’t one in the example template earlier in the thread. Even with that added though, there’s nothing being pulled back.

Profile
 
 
Posted: 11 August 2010 09:10 AM   [ Ignore ]   [ # 21 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Let’s try printing out that {embed:entry_id} and check manually if it’s valid:

My embedded entry id is{embed:entry_id}
{exp
:weblog:entries limit="1" dynamic="off" entry_id="{embed:entry_id}"}
<class="download_item" 
    
href="{exp:cartthrob:view_download_link 
        template='{path=cart/download-file}' 
        file ='{product_download_url}'         
            member_id='{logged_in_member_id}'}"
>
    
{title}
</a>
{/exp:weblog:entries} 
Profile
 
 
Posted: 11 August 2010 09:14 AM   [ Ignore ]   [ # 22 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

Should I be calling that lookup template via the browser?

Profile
 
 
Posted: 11 August 2010 09:15 AM   [ Ignore ]   [ # 23 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Yeah, then once you have that ID, go and check that it’s valid.

Profile
 
 
Posted: 11 August 2010 09:20 AM   [ Ignore ]   [ # 24 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

OK - I’m confused. The lookup template won’t work - where is it getting the entry_id from?

Isn’t it supposed to get the entry id from

{exp:weblog:entries 
    author_id
="CURRENT_USER" 
    
weblog="purchased_items" 
    
dynamic="off" 
    
limit="250"
    
show_future_entries="yes"}
    
<div class="cart_item">
        
{embed="user/.product_file_lookup" entry_id="{purchased_id}"}
    
</div>
{/exp:weblog:entries} 

calling it on its own give me

The following errors were encountered

  * No download URL was specified

Return to Previous Page

Profile
 
 
Posted: 11 August 2010 09:26 AM   [ Ignore ]   [ # 25 ]
Administrator
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Sorry, yes you should call the purchased_items template.

Profile
 
 
Posted: 11 August 2010 09:49 AM   [ Ignore ]   [ # 26 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

Still nothing returning other than 2 empty div with class=“cart_item”

Profile
 
 
Posted: 11 August 2010 10:00 AM   [ Ignore ]   [ # 27 ]
Has a Nice Profile
RankRank
Total Posts:  110
Joined  2010-04-08

OK - think I may have it. Works fine when I’m not embedding product lookup template as hidden. Having it as a hidden template renders nothing.

Profile
 
 
   
2 of 2
2