This is a discussion on postaffiliatepro code compatability ? within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi I want to use PostAffiliatePro for affiliates. It has an integration guide for oscom ..see below ..but will this ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi I want to use PostAffiliatePro for affiliates. It has an integration guide for oscom ..see below ..but will this work on oscmax ? Thanks Roy 1. Find and open file checkout_success.php 2. Inside the file find this line if ($global['global_product_notifications'] != '1') { ... 3. insert the following code just above that line //-------------------------------------------------------------------------- // integration code //-------------------------------------------------------------------------- // get order id $sql = "select orders_id from ".TABLE_ORDERS. " where customers_id='".(int)$customer_id. "' order by date_purchased desc limit 1"; $pap_orders_query = tep_db_query($sql); $pap_orders = tep_db_fetch_array($pap_orders_query); $pap_order_id = $pap_orders['orders_id']; // get total amount of order $sql = "select value from ".TABLE_ORDERS_TOTAL. " where orders_id='".(int)$pap_order_id. "' and class='ot_subtotal'"; $pap_orders_total_query = tep_db_query($sql); $pap_orders_total = tep_db_fetch_array($pap_orders_total_query); $pap_total_value = $pap_orders_total['value']; // draw invisible image to register sale if($pap_total_value != "" && $pap_order_id != "") { $img = '<script id="pap_licencecode" src="http://www.mysite.com/scripts/sale.js" type="text/javascript"></script> <script type="text/javascript"><!-- var TotalCost="'.$pap_total_value.'"; var OrderID="'.$pap_order_id.'"; var ProductID=""; papSale(); --></script>'; print $img; } //-------------------------------------------------------------------------- // END of integration code //-------------------------------------------------------------------------- |
|
#2
| ||||
| ||||
| Should work fine. Give it a shot and post back any problems.
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help locating this line of code | technoboy | osCMax v2 Customization/Mods | 3 | 02-09-2006 01:01 PM |
| Where to get colour code | tyz6970 | osCommerce 2.2 Modification Help | 4 | 08-02-2004 08:46 AM |
| bookmark code | modom | osCommerce 2.2 Modification Help | 3 | 01-03-2003 08:33 AM |