This is a discussion on ## Points And Rewards Module V1.00 ## within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Lets points and vouchers completely pay for an order. IF CCGV installed, see if points and vouchers cover order total ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Lets points and vouchers completely pay for an order. IF CCGV installed, see if points and vouchers cover order total together(only if both points and vouchers are both used). 1. in catalog/includes/classes/order-total.php ***FIND:*** // #################### Begin Added CGV JONYO ###################### global $payment, $order, $credit_covers, $customer_id; // #################### End Added CGV JONYO ###################### ***CHANGE TO:*** // #################### Begin Added CGV JONYO ###################### // $gv_payment_amount added for Points and Rewards CCGV Compatibility global $payment, $order, $credit_covers, $customer_id, $gv_payment_amount; // #################### End Added CGV JONYO ###################### 2. In catalog/checkout_confirmation.php ***FIND:*** ##### Points/Rewards Module V2.00 check for error BOF ####### if (isset($HTTP_POST_VARS['customer_shopping_points_spending']) && USE_REDEEM_SYSTEM == 'true') { ***ADD AFTER:*** // BOF Points and Rewards & CCGV covers if (tep_session_is_registered('cot_gv') && ($cot_gv=='on')){ (tep_calc_shopping_pvalue($customer_shopping_point s_spending)info['total']-$gv_payment_amount)) ? $ccgvpoints_covers = false : $ccgvpoints_covers =true; } // EOF Points and Rewards & CCGV covers ***FIND:*** if ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) && (!$credit_covers) && (!$point_covers)) { ***CHANGE TO:*** if ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) && (!$credit_covers) && (!$point_covers) && (!$ccgvpoints_covers)) { ***FIND:*** if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers_order) && (!$point_covers)) { ***CHANGE TO:*** if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers_order) && (!$point_covers) && (!$ccgvpoints_covers)) { More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Points/Rewards Module | michael_s | New osCommerce Contributions | 0 | 11-23-2007 08:12 PM |
| ## Points And Rewards Module V1.00 ## | michael_s | New osCommerce Contributions | 0 | 10-13-2007 07:28 AM |
| ## Points And Rewards Module V1.00 ## | michael_s | New osCommerce Contributions | 0 | 10-05-2007 12:30 AM |
| ## Points And Rewards Module V1.00 ## | michael_s | New osCommerce Contributions | 0 | 09-16-2007 12:11 PM |
| ## Points And Rewards Module V1.00 ## | michael_s | New osCommerce Contributions | 0 | 02-21-2007 09:52 AM |