wickedaustralia Posted March 5, 2014 Share Posted March 5, 2014 Hello Everyone, Has anyone set up an affiliate marketing account with clixgalore.com.au on prestashop before? They gave me the instructions required to add the code and create an override file. I then completed (many) test transactions, all seems to work ok, except that the amount of the sale is not returned to clixgalore backend. It returns a 0.00 amount. The order ID comes through ok. I have deleted the cache file as indicated in prestashop documentation. These are the instructions from Clixgalore which I have followed: To integrate the clixGalore End of Sale code with the PrestaShop please follow the instructions below. Create a file called /override/controllers/OrderConfirmationController.php and add/save the following code: <?php class OrderConfirmationController extends OrderConfirmationControllerCore { public function displayContent() { global $cart; self::$smarty->assign('clixorderTotal', $cart->getOrderTotal()); parent::displayContent(); } } ?> Edit page: themes/yourthemes/order-confirmation.tpl At the end of the page add in this line: <img src="https://www.clixGalore.com/AdvTransaction.aspx?ADID=15107&SV={$clixorderTotal}&OID={$id_order}" border="0" height="0" width="0"> Any help would be fantastic. I have added the above code in /mytheme & /default theme. Is is bizarre that the sale registers with clixgalore with the order id, just not the sales amount. :-/ Sad panda here scratching his head and in dire need of a beer to cope. Thanks Link to comment Share on other sites More sharing options...
bteo Posted September 4, 2014 Share Posted September 4, 2014 BUMP! Yeh I'd like to know how its done too. hope they would actually make a prestashop module instead commissionfactory has one. Link to comment Share on other sites More sharing options...
Recommended Posts