X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Accessing order variables for Myaffiliate tracking (https://forum.x-cart.com/showthread.php?t=5627)

relaxedguy 12-16-2003 10:20 AM

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

relaxedguy 12-17-2003 08:25 AM

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

funkydunk 12-22-2003 01:29 AM

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}


funnytshirts 12-15-2004 08:25 PM

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?


All times are GMT -8. The time now is 11:24 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.