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; Lets points and vouchers completely pay for an order. IF CCGV installed, see if points and vouchers cover order total ...


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
Reply

 

LinkBack Thread Tools
  #1  
Old 03-25-2008, 04:00 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,967
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 ##

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


  • 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!
Reply With Quote
Sponsored Links
Advertisement
Reply

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/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 08:28 AM
## Points And Rewards Module V1.00 ## michael_s New osCommerce Contributions 0 10-05-2007 01:30 AM
## Points And Rewards Module V1.00 ## michael_s New osCommerce Contributions 0 09-16-2007 01:11 PM
## Points And Rewards Module V1.00 ## michael_s New osCommerce Contributions 0 02-21-2007 09:52 AM


All times are GMT -8. The time now is 01:07 AM.


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