mykky Posted March 4, 2015 Share Posted March 4, 2015 (edited) Hi I have a problem with adding custom code for affiliate program. In the old prestashop (1.3) code inserted to order-confirmation.php in root. In new Prestashop 1.6 this file does not exist. - @deprecated 1.5.0 Where I insert this code in a new version of prestashop? Please help me:( <?php // Your organization ID; provided by Lyoness // $organization = "xxxx"; // Your checksum code; provided by Lyoness // $checksumCode = "xxxx"; // Value of the sale; sale specific value has to // be assigned dynamically out of the shop database // $orderValue = "X.XX"; // Currency of the sale. // For example "USD" for US $, or "EUR" for Euro // $currency = "EUR"; // Event ID; provided by Lyoness // $event = "xxxx"; // Event type: // in most cases $isSale should be left as "true" unless // you arranged a lead commission with Lyoness // true = Sale // false = Lead // $isSale = true; // Encrypted connection on this page: // true = Yes (https) // false = No (http) // $isSecure = true; // Here you must specify a unique identifier for the transaction. // You should assign your internal shop order number dynamically // out of your shop database // $orderNumber = "xxxxxxxx"; // If you do not use the built-in session functionality in PHP, modify // the following expressions to work with your session handling routines. // $tduid = ""; if (!empty($_SESSION["TRADEDOUBLER"])) $tduid = $_SESSION["TRADEDOUBLER"]; Implementation Manual_EN_B01.pdf Edited March 4, 2015 by mykky (see edit history) Link to comment Share on other sites More sharing options...
teralite Posted March 5, 2015 Share Posted March 5, 2015 try in /themes/your_theme/order-confirmation.tpl Link to comment Share on other sites More sharing options...
mykky Posted March 5, 2015 Author Share Posted March 5, 2015 (edited) You can't add a php file in tpl. I solved it when creating custom module for affil program and hook the code to displayOrderConfirmation. Works perfectly Edited March 5, 2015 by mykky (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