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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

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


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,763
Thanks: 139
Thanked 609 Times in 521 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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 11 03-31-2009 12:30 PM
any1 has POINTS AND REWARDS MODULE V2 for oscmaxv 2.0 RC3 jikey osCMax v2 Features Discussion 2 11-16-2006 05:30 PM
Points & Rewards Module mogsta22 osCMax v2 Features Discussion 0 10-10-2005 12:23 PM
Anyone install Points and Rewards module? nemail osCMax v1.7 Discussion 4 10-03-2005 10:01 PM
points and rewards mod error Christy osCMax v2 Customization/Mods 0 10-02-2005 07:14 AM


All times are GMT -8. The time now is 04:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design