JPRIETO Posted August 19, 2012 Share Posted August 19, 2012 (edited) Long ago I was able to intergrate JAM from Jrox into PrestaShop. Today I did a NEW install for a web site I want to create and intergrate with JAM. The problem is that order-confirmation.php does NOT look like Jrox documentation says it does. I know which JAM code to use, but did PrestaShop changed the order-confirmation.php file to a more compact coded file? Can anyone help, please? note: Im using PrestaShop 1.4.8.3 Edited August 19, 2012 by JPRIETO (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted August 19, 2012 Share Posted August 19, 2012 Check OrderConfirmationController.php in controllers folder Link to comment Share on other sites More sharing options...
JPRIETO Posted August 19, 2012 Author Share Posted August 19, 2012 thanks razaro thats where the code was transferred to you saved me $100 in aspirin pills thanks Link to comment Share on other sites More sharing options...
palmettoweb Posted August 22, 2012 Share Posted August 22, 2012 I am using this code in the order confirmation control file, but still is not recording the sale over... //START JAM CODE $JAMIntegrate = file_get_contents("http://affiliatemanagerpro.net/affiliates/sale.php?amount=".$order->total_paid_real."&trans_id=".$id_order."&custom_mid=".$_COOKIE['jrox']); //END JAM CODE Any help would be very much appreciated. Link to comment Share on other sites More sharing options...
JPRIETO Posted August 25, 2012 Author Share Posted August 25, 2012 Well, I tried everything and nothing worked. I even placed the code in theme tpl file, and still nothing. I wonder if jrox blocked prestashop to sell their JEM cart. There has to be a good samaritan here who can help us. Admin at jrox seems not helpful, perhaps they wish to push their JEM program which is a shopping cart too. Nevertheless, in the past I've found here good people who cared enough to help, and did. Until then, I will pray. Link to comment Share on other sites More sharing options...
ChiActivate Posted February 26, 2015 Share Posted February 26, 2015 I found the integration guide here, but i didn't work for me. PLEASE HELP!!! https://jam.jrox.com/kb/article/113/commission-integration-with-prestashop-15.php Open up the /controllers/front/OrderConfirmationController.phpfile. Locate the code block as shown below and add the integration code as show below. Look for the //START AFFILIATE CODE and //END AFFILIATE CODE block to edit. Make sure to use your affiliate URL for the integration block. public function displayOrderConfirmation() { if (Validate::isUnsignedId($this->id_order)) { $params = array(); $order = new Order($this->id_order); $currency = new Currency($order->id_currency); if (Validate::isLoadedObject($order)) { $params['total_to_pay'] = $order->getOrdersTotalPaid(); $params['currency'] = $currency->sign; $params['objOrder'] = $order; $params['currencyObj'] = $currency; //START AFFILIATE CODE $JAMIntegrate = file_get_contents("http://fedora.jemtest.com/jam3/sale/amount/".$params['total_to_pay']."/trans_id/".$this->id_order."/tracking_code/".$_COOKIE['jamcom']); //END AFFILIATE CODE return Hook::exec('displayOrderConfirmation', $params); } } return false; } Link to comment Share on other sites More sharing options...
ChiActivate Posted February 28, 2015 Share Posted February 28, 2015 (edited) Remember to replace this code with your own website : /START AFFILIATE CODE$JAMIntegrate = file_get_contents("http://www.yourwebsite.com/jam3/sale/amount/".$params['total_to_pay']."/trans_id/".$this->id_order."/tracking_code/".$_COOKIE['jamcom']); //END AFFILIATE CODE jam3 is your affiliate folder name It's still not working on my prestashop. NO SUPPORT AT ALL from JORX I submitted a ticket 3 weeks ago and still didn't have a reply. I submitted a post at the JROX forum, but my question is still under review. So don't waste your time on this software. It's beautiful only if it works. I have spend two weeks working on this software and still NOT WORKING. I consider it as a piece of junk. DO NOT BUY THIS JROX Affiliate software Edited February 28, 2015 by ChiActivate (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now