Knowledgebase
The On Sale module discounts aren't applied when using Google Checkout or Gift certificates.
Posted by Nick Poindexter on 04 March 2010 05:08 PM
Make the following change:

payment/auth.php

Find this code near line 43:

include_once $xcart_dir."/init.php";


Immediately after insert this code:

// On Sale :: www.alteredcart.com //
if ($active_modules['On_Sale'])
require $xcart_dir."/modules/On_Sale/onsale_payment_auth.php";
// End On Sale //


Additionally, please make sure the modules/On_Sale/onsale_payment_auth.php file is on your server. If it is not you will need to download the most recent version of the On Sale module and upload this file from the distribution to your server.

-------

For Google Checkout only make these additional modifications:

Please be sure the /modules/On_Sale/onsale_google_shipping.php file is on your server. If it is not please download the lastest version of the On Sale module and update your software before making these changes.

modules/Google_Checkout/gcheckout_callback.php

Find this code near line 355:

$config['Shipping']['enable_all_shippings'] = 'N';


Immediately after insert:

// On Sale :: www.alteredcart.com //
if ($active_modules['On_Sale'])
x_session_register('onsale_cart_subtotal_discount');
// End On Sale //


Find this code near line 379:

$_tmp['shipping_methods'] = $_result_shipping_methods;


BEFORE Insert:

// On Sale :: www.alteredcart.com //
if ($active_modules['On_Sale'])
require $xcart_dir."/modules/On_Sale/onsale_google_shipping.php";
// End On Sale //


modules/Google_Checkout/gcheckout_callback.php

Find this code near line 524:

x_load('cart','crypt','user','order');


After insert:

// On Sale :: www.alteredcart.com //
global $active_modules, $xcart_dir;
if ($active_modules['On_Sale'])
require $xcart_dir."/modules/On_Sale/onsale_payment_auth.php";
// End On Sale //

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: