Tracking Code on Checkout Page
I have recently signed up to an affiliate program here in the UK called Affiliate Window. Obviously, to work out the commission and track the orders gained through the Affiliate Network, they need the order information.
I eventually worked out how to pass the order total (would prefer subtotal but I haven't managed that yet) by doing the following in my custom tpl_checkout_success._default.php file:
//Edit for order total query
$ordertotal_query = "select order_total from " . TABLE_ORDERS . "
where customers_id = '" . (int)$_SESSION['customer_id'] . "'
order by date_purchased desc limit 1";
$ordertotal = $db->Execute($ordertotal_query);
//Finish order total query
<?php echo (int)$ordertotal->fields['order_total']; ?>
I am now passing the order total value and that is registering in AW admin but I have yet to work out how to pass the categories_id to be able to setup the different commission structures I need to offer. Is anyone able to point me in the right direction as to how I could pass the product categories_id (could also do it using manufacturers_id) in the tracking code please?
By jdl in forum Addon Payment Modules
Last Post: 2 Feb 2009, 02:57 PM
By mattys in forum Templates, Stylesheets, Page Layout
Last Post: 1 May 2007, 03:43 AM
By chac416 in forum General Questions
Last Post: 5 Dec 2006, 06:53 AM
By SAR in forum Installing on a Linux/Unix Server
Last Post: 26 Jul 2006, 06:20 PM
By stanj in forum All Other Contributions/Addons
Last Post: 3 Jul 2006, 07:05 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC