PDA

View Full Version : Credit Class & Gift Voucher



michael_s
01-20-2009, 06:11 PM
When editing in the step...

1) catalog/checkout_confirmation.php

Right Under:
$order = new order;

$payment_modules->update_status(); (around line 61)

Replace:
if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYME NT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); (around line 55)
}

With:
// Start - CREDIT CLASS Gift Voucher Contribution
$order_total_modules = new order_total;
$order_total_modules->collect_posts();
$order_total_modules->pre_confirmation_check();

// >>> FOR ERROR gv_redeem_code NULL
if (isset($_POST['gv_redeem_code']) && ($_POST['gv_redeem_code'] == null)) {tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYM ENT, '', 'SSL'));}
// modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers) ) {
// End - CREDIT CLASS Gift Voucher Contribution


Be sure to add a } after the "// End - CREDIT CLASS Gift Voucher Contribution


No file or full package attached.


More... (http://addons.oscommerce.com/info/282)