osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

## Points And Rewards Module V1.00 ##

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-21-2007, 09:52 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,992
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post ## Points And Rewards Module V1.00 ##

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax