Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Accessing order variables for Myaffiliate tracking

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-16-2003, 10:20 AM
 
relaxedguy relaxedguy is offline
 

Newbie
  
Join Date: Oct 2003
Posts: 5
 

Default Accessing order variables for Myaffiliate tracking

I'm using myaffiliate.com to do affiliate management and I need to dynamically insert the Order # into each receipt confirmation page.

As instructed, I created a new template file:
Skin1/customer/main/myaffiliate.tpl

this file contains:

Contents:



Order_message.tpl uses this template to output the image as per Myaffiliate instructions.

When I run smarty debug console I can easily access the top-level variables. However, when I attempt to access the OrderID variable in the Order Array as above I am unable to access the variable.

I created an order #51. Then I searched the smarty output for "51" and found the following relevant variables.

Which one is the "official, correct" one to use? Seems like it's referenced several different ways.

$orders => orderid=>51
$orders => products. orderid=>51
$userinfo.orderid=>51

Can someone please tell me the exact code which should go in the img src tag above? Knowing how to access variables in arrays will be very helpful.


Thanks!

Dave
Reply With Quote
  #2  
Old 12-17-2003, 08:25 AM
 
relaxedguy relaxedguy is offline
 

Newbie
  
Join Date: Oct 2003
Posts: 5
 

Default I need a response.

This post supposedly answered the question, but didn't work for me:

http://forum.x-cart.com/viewtopic.php?t=2277&highlight=ultimate+affiliate


Does anyone have a clue about how to do this?


Dave
Reply With Quote
  #3  
Old 12-22-2003, 01:29 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

You could try:

Code:
{section name=num loop=$orders} {assign var=order value=$orders[num].order} [img]https://www.myaffiliateprogram.com/u/profildr/addorder.asp?a=6.00&c={$order.orderid}[/img] {/section}
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 12-15-2004, 08:25 PM
 
funnytshirts funnytshirts is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Philadelphia
Posts: 32
 

Default

i want to embed tracking code to track with shareasale or cj and also track conversion with google adwords and overture too. will this do this? does anyone know of an add on that will allow me to do this?
__________________
Version 4.0.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:20 PM.

   

 
X-Cart forums © 2001-2020