Coupon Code Issue
- mfreeze
- Commodore (COMO)
- Posts: 421
- Joined: Mon Jan 24, 2005 2:07 pm
- Location: Washington, NJ
- Contact:
Coupon Code Issue
One of my clients entered a new coupon code after being upgraded to 7.07 SR1a. Now there is an issue when a non-logged in customer (anonymous user) uses the code. The code is accepted and the discount applied but 2 messages below appear on the screen.
Payment MethodCoupon or Promotional Code
Invalid coupon code.
Coupon accepted.
If the customer is logged in this doesn't happen. If you want to test it, the site is www.ezsox.com.
Payment MethodCoupon or Promotional Code
Invalid coupon code.
Coupon accepted.
If the customer is logged in this doesn't happen. If you want to test it, the site is www.ezsox.com.
Mary E Freeze
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Re: Coupon Code Issue
I've seen this before when there are multiple coupons set up with the same coupon code.
Some sites will have a monster number of coupons configured in the admin. AC7 doesn't check for duplicate coupon codes when a coupon is created. So in situations where the coupon list goes into multiple pages, it becomes far easier to create duplicate coupons by mistake.
Probably one version of the coupon is valid for that basket and the other one isn't, thus the confusing error message.
Some sites will have a monster number of coupons configured in the admin. AC7 doesn't check for duplicate coupon codes when a coupon is created. So in situations where the coupon list goes into multiple pages, it becomes far easier to create duplicate coupons by mistake.
Probably one version of the coupon is valid for that basket and the other one isn't, thus the confusing error message.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- mfreeze
- Commodore (COMO)
- Posts: 421
- Joined: Mon Jan 24, 2005 2:07 pm
- Location: Washington, NJ
- Contact:
Re: Coupon Code Issue
I checked and she has 3 coupon codes EZ20, EZ40 and EZMB50 (which has expired). So that does not appear to be the issue.
Can comebody from Able look at this issue?
Can comebody from Able look at this issue?
Mary E Freeze
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Re: Coupon Code Issue
Hello Mary,
http://help.ablecommerce.com/faqs/ablec ... a_bug_.htm
I only see one change to coupons and that was on the multiple page checkout.
http://help.ablecommerce.com/upgrades/a ... ease_1.htm
http://help.ablecommerce.com/faqs/ablec ... a_bug_.htm
I only see one change to coupons and that was on the multiple page checkout.
http://help.ablecommerce.com/upgrades/a ... ease_1.htm
- mfreeze
- Commodore (COMO)
- Posts: 421
- Joined: Mon Jan 24, 2005 2:07 pm
- Location: Washington, NJ
- Contact:
Re: Coupon Code Issue
We found the problem. One of my programmers had at the customer's request, moved the coupon dialog to just above the payment information.
This caused the double posting of the message. We moved it to another location higher on the page and it solved the problem.
This caused the double posting of the message. We moved it to another location higher on the page and it solved the problem.
Mary E Freeze
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Re: Coupon Code Issue
Interesting, thanks for posting the solution.
The coupon user control is supposed to test for such a scenario. At least that's what I thought when I looked at the code as shown below:
The coupon user control is supposed to test for such a scenario. At least that's what I thought when I looked at the code as shown below:
Code: Select all
protected void Page_Init(object sender, EventArgs e)
{
string valueFromPost = Request.Form[ApplyCouponButton.UniqueID];
if (valueFromPost == this.ApplyCouponButton.Text)
{
// APPLY COUPON WAS CLICKED, INTERCEPT BEFORE OTHER PROCESSING
ApplyCoupon();
Context.Items["CouponApplied"] = true;
}
PageHelper.SetDefaultButton(CouponCode, ApplyCouponButton.ClientID);
CouponCode.Attributes.Add("autocomplete", "off");
}
protected void ApplyCouponButton_Click(object sender, EventArgs e)
{
if (!Context.Items.Contains("CouponApplied"))
{
ApplyCoupon();
}
CouponCode.Text = string.Empty;
}
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Coupon Code Issue
The code Joe mentions was in older versions of Able so maybe it needs to be added to your checkout page.
This is good info- someone had asked me about the issue and I couldn't figure out why it was happening. I've also wondered why the code was added to 707 and now I know!
This is good info- someone had asked me about the issue and I couldn't figure out why it was happening. I've also wondered why the code was added to 707 and now I know!
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx