Order Coupon Showing up Inconsistently

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Diavan
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Mon Dec 14, 2009 11:38 pm

Order Coupon Showing up Inconsistently

Post by Diavan » Wed Apr 07, 2010 4:41 pm

I'm trying to add a very simple 10% coupon (type Order) to the orders.

When applied to a cart the Coupon with fewer items it might show up as one line item (which is rare).
However as the basket items increase gradually the number of coupon line items increase randomly.
The Coupon total comes up correct though.

The way it show up multiple time is confusing as well. Hard to figure out how many products one coupon is attached to.
If it is a Order Coupon it 'should' show up once as a basket item. Or am I assuming it wrong??
Is there a way to workaround this. Am I missing any settings??
I tried many different settings with Allow Combine, Min purchase, Max Value didn't seem to work.

Appreciate any help. Thanks.

Image

Image

Image

Image

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Order Coupon Showing up Inconsistently

Post by igavemybest » Wed Apr 07, 2010 8:36 pm

How many warehousese are the products set to ship from?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Order Coupon Showing up Inconsistently

Post by mazhar » Thu Apr 08, 2010 7:47 am

I guess in current implementations one order coupon is created per shipment. It seems like most of your products are having different shipment in basket that's why its showing different coupon per shipment.

Diavan
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Mon Dec 14, 2009 11:38 pm

Re: Order Coupon Showing up Inconsistently

Post by Diavan » Thu Apr 08, 2010 8:43 am

I understand that the coupons are connected to shipments which is what we needed - so for three shipments the order coupons should show up as many times. But that's not the case here.

My concern was that why:
- Coupon shows up 2 times for first shipment (12 items)
- Coupon shows up 2 times for 2nd shipment (2 items)
- Coupon shows up 1 time for 3rd shipment (3 items)

I'm trying to figure out the line item logic behind the order coupons.
Why are these coupons breaking up in the first place.
They should have been appearing One time for each shipment regardless of items in that shipment. No??

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Order Coupon Showing up Inconsistently

Post by jmestep » Thu Apr 08, 2010 2:16 pm

When you set up the order coupon, do you allow all products, or just some? Maybe it splits it if you only allow some products. I tested an order coupon with allow all products and it didn't split things up.
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

Diavan
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Mon Dec 14, 2009 11:38 pm

Re: Order Coupon Showing up Inconsistently

Post by Diavan » Thu Apr 08, 2010 6:06 pm

I have it selected as "Valid for any Product" as shown in the first snapshot.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Order Coupon Showing up Inconsistently

Post by mazhar » Fri Apr 09, 2010 7:16 am

BTW how many warehouses are there and how many products in basket have different warehouses. System creates different shipments for different warehouses.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Order Coupon Showing up Inconsistently

Post by jmestep » Fri Apr 09, 2010 7:50 am

Maybe it happens when there is a volume discount item in the basket also?
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

Diavan
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Mon Dec 14, 2009 11:38 pm

Re: Order Coupon Showing up Inconsistently

Post by Diavan » Fri Apr 09, 2010 7:40 pm

mazhar wrote:BTW how many warehouses are there and how many products in basket have different warehouses. System creates different shipments for different warehouses.
I just removed any item that is shipped from a separate warehouse. The basket only contains items shipped from one location now.
jmestep wrote:Maybe it happens when there is a volume discount item in the basket also?
Deleted the Discount from the system as well. I deleted any other coupons added to the basket.

Image

When I start removing items one by one in the basket.aspx page at some point the two line items for coupons convert into one.
I just can't figure out why !!

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Order Coupon Showing up Inconsistently

Post by jmestep » Sat Apr 10, 2010 7:00 am

I have been working on custom coupon code off and on and I have thought that at times I had seen the coupons grouped into one item in the basket and at other times seen it split out. I haven't tried to trouble shoot it and until you brought it up, I thought maybe I was remembering things incorrectly and couldn't replicate the issue when I tried. Able is working on a coupon bug, so maybe this recalculation is related to that also.
Here is the bug:
http://bugs.ablecommerce.com/show_bug.cgi?id=8849
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

Diavan
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Mon Dec 14, 2009 11:38 pm

Re: Order Coupon Showing up Inconsistently

Post by Diavan » Sat Apr 10, 2010 12:26 pm

Hope to see a patch soon then.
Its not a show stopper - just a little confusing for the users.
Thanks Judy.

AussieInSeattle
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Wed Sep 15, 2010 11:06 am

Re: Order Coupon Showing up Inconsistently

Post by AussieInSeattle » Tue Nov 02, 2010 2:25 pm

I just ran into this issue ($25 off any order as an order coupon) and I fixed in teh following way:
In Basket.ascx.cs around line 79 (AC7.0.5) in the GetBasketItems method I added this to the existing if/else statement:

code removed due to issues in testing
Last edited by AussieInSeattle on Tue Nov 23, 2010 12:45 pm, edited 1 time in total.

AussieInSeattle
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Wed Sep 15, 2010 11:06 am

Re: Order Coupon Showing up Inconsistently

Post by AussieInSeattle » Tue Nov 02, 2010 3:06 pm

Had to make a similar edit so that the emails that are sent out aren't split like you see in the UI.
Changes made to OrderItemCollection.cs (you'll need source code for this change).
All of these changes rely on you having coupons uniquely named - its all somewhat of a hack for what I see as a bug.

Code: Select all

removed code as it caused other issues
Last edited by AussieInSeattle on Tue Nov 02, 2010 5:03 pm, edited 1 time in total.

AussieInSeattle
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Wed Sep 15, 2010 11:06 am

Re: Order Coupon Showing up Inconsistently

Post by AussieInSeattle » Tue Nov 02, 2010 3:22 pm

I should also mention that all the above code is untested at this point - I'll post back with any fixes if I run into issues.

Post Reply