View Single Post
  #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