Hi,
When a customer enters a gift certificate on the checkout payment page, it goes to the confirm page and does not apply the gift certificate.
I might have a solution to this.
In includes/modules/order_total/ot_gv.php
After This line (approx 197) :
add this directly below it:PHP Code:
$messageStack->add_session('redemptions',ERROR_REDEEMED_AMOUNT. $currencies->format($gv_amount), 'success' );
This will take them back to the payment page if a gift voucher has been succesfully been redeemed. This allows them to apply it to their order.PHP Code:
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT));
I would really like to add a redeem button after the redemption code. I tried doing this, but it still runs the javascript asking me to select a payment method.
Is this an ok solution? What are the drawbacks to this? Maybe the zen cart developers have some thoughts. I'm sure it was created the other way for a reason.
Thank you!
Bookmarks