Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Redeem Gift Certificate - Go back to payment page

Redeem Gift Certificate - Go back to payment page

Locked

Started by compwhizmm on 15 Dec 2007, 6:19 PM · Views: 3,186

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Dec 2007, 6:19 PM
#1
compwhizmm avatar

compwhizmm

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!

16 Dec 2007, 12:48 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

Re: Redeem Gift Certificate - Go back to payment page

What version of Zen Cart is installed?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

16 Dec 2007, 2:43 AM
#3
compwhizmm avatar

compwhizmm

New Zenner

Join Date:
Oct 2007
Location:
USA
Posts:
31
Plugin Contributions:
0

Re: Redeem Gift Certificate - Go back to payment page

Kim:

What version of Zen Cart is installed?

1.3.7.1 I will upgrade to 1.4 when it comes out.

3 Jan 2008, 1:57 AM
#4
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Redeem Gift Certificate - Go back to payment page

Did you find a way to have a redeem button for the gift certificate? This would really help as I had the same problem as they received a printable gift certificate and didn't have the easy email link to redeem before checkout.

But I will try your fix above an let you know.

Thanks
Supersnow

3 Jan 2008, 2:03 AM
#5
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Redeem Gift Certificate - Go back to payment page

Actually another great idea would be to have a redeem gift certificate area within the customer's account area where they can redeem gift certificates before they start the shopping/checkout process. Then once they are in the checkout all they have to do is choose if they want to apply the gift certifcate.

Any ideas on this?

Thanks
Supersnow