Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / checking out with gift certificate

checking out with gift certificate

Views: 8,721

Results 21 to 30 of 30
13 May 2013, 9:44 PM
#21
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

checking out with gift certificate

Lanbo,

Many thanks, this seems to be working perfectly. This solves a problem that has existed for my customers for a long time!

Ed

13 May 2013, 9:54 PM
#22
lanbo avatar

lanbo

New Zenner

Join Date:
Dec 2011
Posts:
48
Plugin Contributions:
0

Re: checking out with gift certificate

No problem. Just happy I was finally able to help others after being helped by others so many times.

If anyone ever notices anything working "strangely" with the change, let me know. I like figuring things out when I have time.

20 May 2013, 12:33 PM
#23
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: checking out with gift certificate

Thank you so much, Lanbo. I have been looking for this solution for quite a while! It seems to work perfectly now.

20 May 2013, 2:45 PM
#24
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: checking out with gift certificate

I may have found an issue with this, not sure if it's just my setup or if others can reproduce this.

If you have a valid gift certificate code and enter it in the discount code box instead of in the gift certificate code box, you get a message saying that the Discount Code has been successfully redeemed, but in reality, the gift certificate is NOT redeemed and not applied to the order.

Entering a bogus code gives the correct "invalid code" error message, but a valid gift certificate code that is entered in the discount code box gives off a "redeemed" message.

20 May 2013, 3:01 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: checking out with gift certificate

Check and see what happens if you change in:
/includes/modules/order_total/ot_coupon.php

the SELECT around line 165 to:

      $sql = "select coupon_id, coupon_amount, coupon_type, coupon_minimum_order, uses_per_coupon, uses_per_user,
              restrict_to_products, restrict_to_categories, coupon_zone_restriction
              from " . TABLE_COUPONS . "
              where coupon_code= :couponCodeEntered
              and coupon_active='Y'
[B]              and coupon_type !='G'";
[/B]
20 May 2013, 3:07 PM
#26
lanbo avatar

lanbo

New Zenner

Join Date:
Dec 2011
Posts:
48
Plugin Contributions:
0

Re: checking out with gift certificate

I have not tried Ajeh's suggestion, but I can confirm that it doesn't have to do with the changes to make it use the full GV balance by default. I have an old shopping cart that has never been altered and the same thing happens there.

EDIT: Ajeh's answer does fix your problem. I just tried it. Thanks Ajeh.

20 May 2013, 3:15 PM
#27
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: checking out with gift certificate

Sure thing ... thanks for the update that this helped you out in older Zen Cart version than v1.5 ...

NOTE: this is already done in v1.5+

24 Jul 2013, 2:15 AM
#28
avaadorn avatar

avaadorn

Zen Follower

Join Date:
Feb 2012
Posts:
106
Plugin Contributions:
0

Re: checking out with gift certificate

Hi Lanbo,

I have found something that acts strangely, and maybe I did something wrong wrong when changing the code. But let's say customer wants to apply a $0.00 amount. I use PayPal as my payment processor and for some reason, it doesn't like when zero is applied. I get this error message:

10401 Transaction refused because of an invalid argument. See additional error messages for details. - Order total is invalid.

Does anyone else have this issue?

24 Jul 2013, 5:16 PM
#29
lanbo avatar

lanbo

New Zenner

Join Date:
Dec 2011
Posts:
48
Plugin Contributions:
0

Re: checking out with gift certificate

Because of the nature of what I sell, I cannot use PayPal. If I get some free time I'll try to look and see with my test site, but that may be some time. Have you tried changing the code back to the original and making sure it is still working? That would help to determine if it was indeed the gift certificate code that is causing the problem.

25 Jun 2015, 8:20 PM
#30
avaadorn avatar

avaadorn

Zen Follower

Join Date:
Feb 2012
Posts:
106
Plugin Contributions:
0

Re: checking out with gift certificate

I still have some customers confused on Step 2 of 3 of checkout. The GV Balance will apply to the Order Total only after the customer puts in their credit card info and hits continue. Is there a way to update the Order Total with the applied amount of the Gift Certificate BEFORE the customer inputs their credit card and gets to Step 3 of checkout? Maybe make an apply button where it says "Apply Amount"?

Example: Customer has order total of $100. They apply GV funds worth $80. They see that they still have to pay $100 because the order total won't show $20 until AFTER they've entered their credit card info and clicked continue to get to final page of checkout. This confuses some customers because they want the order total to show $20 before they enter in any payment info.

This works when a customer enters a COUPON CODE and hits enter. The order total updates with the discount and the customer is still on step 2 of checkout. It would be nice if the Gift Certificate worked in a similar manner.

Can some code be written to create an Apply Button (where it says "Apply Amount") that will update the order total before payment info is entered?