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; for all having trouble showing points on checkout_confirmation.php register_globals=off could be the reason... to fix this problem, simply change one ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| for all having trouble showing points on checkout_confirmation.php register_globals=off could be the reason... to fix this problem, simply change one thing: in catalogincludesmodulesorder_totalot_redemptions.ph p search for: // if customer is using points to pay if ($customer_shopping_points_spending > 0){ $order->info['total'] = $order->info['total'] - (tep_calc_shopping_pvalue($customer_shopping_point s_spending)); $this->output[] = array('title' =>''. MODULE_ORDER_TOTAL_REDEMPTIONS_TEXT . ':', 'text' => '-'.$currencies->format(tep_calc_shopping_pvalue($customer_shoppin g_points_spending), true, $order->info['currency'], $order->info['currency_value'].''), 'value' => tep_calc_shopping_pvalue($customer_shopping_points _spending)); } and replace with: // if customer is using points to pay if ($_POST['customer_shopping_points_spending'] > 0){ $order->info['total'] = $order->info['total'] - (tep_calc_shopping_pvalue($_POST['customer_shopping_points_spending'])); $this->output[] = array('title' =>''. MODULE_ORDER_TOTAL_REDEMPTIONS_TEXT . ':', 'text' => '-'.$currencies->format(tep_calc_shopping_pvalue($_POST['customer_shopping_points_spending']), true, $order->info['currency'], $order->info['currency_value'].''), 'value' => tep_calc_shopping_pvalue($_POST['customer_shopping_points_spending'])); } ------------------ second solution but not that safe is to overwrite existing ot_redemptions.php with that one I included... Thx for this wonderful constribution goes to silver... fix by www.artesanias.de More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Points and Rewards Module ported to osCMax | jpf | osCMax Projects Discussion | 10 | 10-16-2008 02:09 PM |
| any1 has POINTS AND REWARDS MODULE V2 for oscmaxv 2.0 RC3 | jikey | osCMax v2 Features Discussion | 2 | 11-16-2006 06:30 PM |
| Points & Rewards Module | mogsta22 | osCMax v2 Features Discussion | 0 | 10-10-2005 01:23 PM |
| Anyone install Points and Rewards module? | nemail | osCMax v1.7 Discussion | 4 | 10-03-2005 11:01 PM |
| points and rewards mod error | Christy | osCMax v2 Customization/Mods | 0 | 10-02-2005 08:14 AM |