Magento Forum

   
Magento Shopping Cart Price Rule counting row quantity as N+1
 
matt1237
Member
 
Avatar
Total Posts:  70
Joined:  2008-05-15
Washington State
 

Instead of applying to 8 or more total matching items in cart, Magento is counting wrong.  It does this equation for each matching row… [add a quantity of 1 for each row that matches] + [quantity number in qty column]… or essentially N+1 per row.

So here are cart examples that are matching now as 8 subselection items in cart:

Product Name | Quantity
Socks | 3 (Magento counts this as 4)
Pants | 1 (Magento counts this as 2)
Shirt | 1 (Magento counts this as 2)

Product Name | Quantity
Socks | 1 (Magento counts this as 2)
Pants | 1 (Magento counts this as 2)
Shirt | 1 (Magento counts this as 2)
Tie | 1 (Magento counts this as 2)

Product Name | Quantity
Socks | 7 (Magento counts this as 8)

### My Price Rule Conditions & Actions ###

Here is how to reproduce my this issue.  I am using Magento CE 1.6.2. The shopping cart price rule goal is this…
If the shipping location is USA and someone has 8 items of the attribute set Product, then apply free shipping to matching items only.

(The Magento Shopping Cart Price Rule should apply to 8 matching items in one row, or any variation that adds up to 8 in the whole cart… 2 of this, 2 of that, and 4 of these that are all of attribute set Product and will be shipped to USA.)

Price rule conditions:
If ALL of these conditions are TRUE :
- Shipping Country is United States
- If total quantity equals or greater than 8 for a subselection of items in cart matching ALL of these conditions:
- - Attribute Set is Products

Price rule actions:
Apply: Percent of product price discount
Discount Amount *: 0
Maximum Qty Discount is Applied To: 0
Discount Qty Step (Buy X): 0
Apply to Shipping Amount: No
Free Shipping: For matching items only
Stop Further Rules Processing: No

If ALL of these conditions are TRUE :
- Quantity in cart equals or greater than 1
- Attribute Set is Products

HELP!  Does anyone know why this is happening?  Is it a bug, or a misunderstanding of how to apply this price rule?

Image Attachments
buy8-issue.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
matt1237
Member
 
Avatar
Total Posts:  70
Joined:  2008-05-15
Washington State
 

Has anyone else run into this issue before?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top