function tep_paypal_wpp_checkout_shipping_error_display($ec_checkout) { global $messageStack, $ec_enabled; if (!$ec_enabled) { return false; } if (tep_session_is_registered('paypal_error')) { $messageStack->add('shipping', $_SESSION['paypal_error']); tep_session_unregister('paypal_error'); } if ($messageStack->size('shipping') > 0) { ?> <tr> <td><?php echo $messageStack->output('shipping'); ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <?php } if (!$ec_checkout) { tep_paypal_wpp_ep_button(FILENAME_CHECKOUT_SHIPPING); } else { tep_paypal_wpp_switch_checkout_method(FILENAME_CHECKOUT_SHIPPING); } }
<?php } ?> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> <?php $radio_buttons++; } //---PayPal WPP Modification START ---// } else { $onepage['info']['payment_method'] = 'paypal_wpp'; tep_paypal_wpp_switch_checkout_method(FILENAME_CHECKOUT); echo tep_draw_hidden_field('payment', 'paypal_wpp'); } //---PayPal WPP Modification END ---// // Start - CREDIT CLASS Gift Voucher Contribution if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { if (tep_session_is_registered('customer_id')) { $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); if ($gv_result['amount'] > 0) { echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td><td colspan=2>' . "\n" . ' <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onclick="clearRadeos()">' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td><td class="main">' . $gv_result['text']; echo $order_total_modules->sub_credit_selection(); } } } // End - CREDIT CLASS Gift Voucher Contribution