function deleteCoupon() { global $toC_Json, $osC_Language, $osC_Payment, $osC_ShoppingCart, $osC_Currencies, $osC_Payment; $osC_ShoppingCart->deleteCoupon(); $form = toC_Json_Checkout::_getPaymentMethodForm(); $response = array('success' => true, 'form' => $form, 'go_to_payment_form' => $go_to_payment_form); echo $toC_Json->encode($response); }
function deleteCoupon() { global $toC_Json, $osC_Language, $osC_Payment, $osC_ShoppingCart, $osC_Currencies, $osC_Payment; $osC_ShoppingCart->deleteCoupon(); $go_to_payment_form = false; if (!$osC_ShoppingCart->isTotalZero() && !$osC_ShoppingCart->hasBillingMethod()) { $go_to_payment_form = true; } $form = toC_Json_Checkout::_getOrderConfirmationForm(); $response = array('success' => true, 'form' => $form, 'go_to_payment_form' => $go_to_payment_form); echo $toC_Json->encode($response); }