Affiliate Software Documentation

Commission Integration with Prestashop 1.4

To integrate with Prestashop 1.4, follow these steps:
  1. Open up order-confirmation.php for editing.
  2. Find the following lines and add the highlighted code:
    $smarty->assign(array(
    'HOOK_ORDER_CONFIRMATION' => Hook::orderConfirmation(intval($id_order)),
    'HOOK_PAYMENT_RETURN' => Hook::paymentReturn(intval($id_order), intval($id_module))));
    //START JAM CODE $JAMIntegrate = file_get_contents("http://www.domain.com/affiliates/sale/amount/".$order->total_paid_real."/trans_id/".$id_order."/custom_mid=".$_COOKIE['jrox']); //END JAM CODE

    $smarty->display(_PS_THEME_DIR_.'order-confirmation.tpl'); include(dirname(__FILE__).'/footer.php');
  3. Make sure to change the domain.com/affiliates in the code to point to your own affiliate URL
  4. Save the file and reupload back to your Prestashop folder.