New Zenner
- Join Date:
- Oct 2007
- Location:
- USA
- Posts:
- 31
- Plugin Contributions:
- 0
Redeem Gift Certificate - Go back to payment page
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) :
$messageStack->add_session('redemptions',ERROR_REDEEMED_AMOUNT. $currencies->format($gv_amount), 'success' );
add this directly below it:
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT));
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.
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!