Magento Forum

Page 1 of 2
Buy X get Y Free
 
jpbazinet
Jr. Member
 
Total Posts:  9
Joined:  2008-10-14
 

Version 1.1.6

This doesn’t seem to be working.

I have a category where I’d like to have a ‘buy 2 get 1 free’ (Buy 2 items… get a 3rd for free) promotion.

I have set up the following:

Conditions:
If ALL of these conditions are TRUE :

* If an item is FOUND in the cart with ALL of these conditions true:
o Category is 9

Actions:
Buy x get y free
Discount amount: 1
Maximum Qty Discount is Applied to: 0
Discount Qty Step (Buy X): 3
Free shipping: No
Stop further rules processing: Yes

No discount is applied in the shopping cart.

Tried changing Discount Qty Step to 2. Nothing.
I even removed the Category is 9 part, and nothing happened.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael Trachtman
Jr. Member
 
Total Posts:  1
Joined:  2008-10-04
 

Having a problem with this as well.  “2 for 1” or “Buy 1 Get 1 Free” does not appear to work.

Conditions:

If ANY of these conditions are TRUE :
* If an item is FOUND in the cart with ALL of these conditions true:
o SKU is 790001

Actions:

Buy X get Y free;
Discount Amount = 1
Discount Qty Step (Buy X) = 1

Apply the rule only to cart items matching the following conditions (leave blank for all items)
If ALL of these conditions are TRUE :

* SKU is 790001

There are no other rules in place.

 
Magento Community Magento Community
Magento Community
Magento Community
 
JamesBee
Jr. Member
 
Total Posts:  26
Joined:  2008-01-02
 

It only appears to work when it’s the same items you are getting free. So buy 1 of these and get 1 free. It doesn’t work across all items in a category etc.

Any idea if this will be a feature in the future so we could have buy 1 of these items out of a category and get any other free.

 
Magento Community Magento Community
Magento Community
Magento Community
 
esa100
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2008-11-06
 

just finding out this same problem.  category or manufacturer does not work here.  discount only works for a certain product.

This is a bug.  The feature clearly should work in a category or with other attribute

EDIT:  after experimentation and thinking… this actually is not a bug.  it is one way of thinking.  buy x get y free with
“apply only to xxx” rules works for a certain product only, because that what the rule is telling; “apply only the products, which...”

I did get approximately what i needed by putting in “Condition” a “product subselection” rule:
---------
If ALL of these conditions are TRUE :

* If total quantity greater than 2 for a subselection of items in cart matching ALL of these conditions:
Category is 67
---------

and then in “Actions” just give 33.3% discount for those same products ("Apply only").

this way customers who buy any 3 products of that category, get 33% discount, ie. get 1 free.
This is close enough.

 
Magento Community Magento Community
Magento Community
Magento Community
 
James Ball
Member
 
Total Posts:  46
Joined:  2009-01-27
 

I am also wanting to run a “buy 3 items and get the cheapest free” promotion (on all product not just the same product) but am having problems is there any way to do this? and adons?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jara
Member
 
Total Posts:  38
Joined:  2009-06-03
 

Same problem, buy 1 of these and get 1 free. It doesn’t work across all items.any idea how to implement this…

Thanx in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
James Ball
Member
 
Total Posts:  46
Joined:  2009-01-27
 

does any one know of an add on that will enable this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
carboncreation
Jr. Member
 
Total Posts:  2
Joined:  2009-11-24
 

Has this bug been resolved? I cannot get buy 1 get 1 free to work at all.
For your reference Buy 2 get 1 free is ok here

 
Magento Community Magento Community
Magento Community
Magento Community
 
pgoetzin
Jr. Member
 
Total Posts:  28
Joined:  2009-04-24
 

i found this addon
http://www.mag-module.de/magento-extension/buy-x-get-y-for-free
but its 50 $ :-(

did anyone find a free sollution ?

thx

 
Magento Community Magento Community
Magento Community
Magento Community
 
pgoetzin
Jr. Member
 
Total Posts:  28
Joined:  2009-04-24
 

Hello Everyone,
i did some investigations and made a patch for this:
the rule is if you buy x items you will get the cheapest free even if its a different item.

its in the file
app/code/core/Mage/SalesRule/Model/Validator.php
i modified the orginal buy_y_get_y case now its a mix of the old buy_y_get_y and the cart_fixed case wink

I m not that familiar with magento, so it would be great if someone can review it.

case 'buy_x_get_y':
              
$cartRules $address->getCartFixedRules();
                 
$x $rule->getDiscountStep(); //2
                  
$y $rule->getDiscountAmount(); //1
            
          
if ($quote->getItemsSummaryQty()>=($x+$y)){
        
           
if (!isset($cartRules[$rule->getId()])) {
                        $cartRules[$rule
->getId()$item->getPrice();
                    
}elseif($cartRules[$rule->getId()]>$item->getPrice()){
            $cartRules[$rule
->getId()$item->getPrice();    
            
}
                    
if ($cartRules[$rule->getId()0{
                        $quoteAmount 
$quote->getStore()->convertPrice($cartRules[$rule->getId()]);
                        
$discountAmount min($item->getRowTotal(), $quoteAmount);
                        
$baseDiscountAmount min($item->getBaseRowTotal(), $cartRules[$rule->getId()]);
                        
$cartRules[$rule->getId()-= $baseDiscountAmount;
                    
}
                    
        $address
->setCartFixedRules($cartRules);
        
}
 
          
break;

any improvements are welcome !

regards
Philipp

 
Magento Community Magento Community
Magento Community
Magento Community
 
MathieuF
Sr. Member
 
Total Posts:  141
Joined:  2009-03-12
Montreal, Canada
 

Does this code work ?

I too would like to see such a feature, buy 2 get 1 at 50% off or something…

 
Magento Community Magento Community
Magento Community
Magento Community
 
pgoetzin
Jr. Member
 
Total Posts:  28
Joined:  2009-04-24
 

yes is working.

set up the rule as normally when u are limited to the same product ...
then make a copy of your
app/code/core/Mage/SalesRule/Model/Validator.php
and patch it ..

but its only working once, buy 2 get 1

but not working yet is twice the rule which means if you buy 4 get 2 free with the same rule ..

the rule is if x>y then get z free..

 
Magento Community Magento Community
Magento Community
Magento Community
 
dt1760
Jr. Member
 
Total Posts:  19
Joined:  2009-10-08
 
esa100 - 26 February 2009 04:56 AM

just finding out this same problem.  category or manufacturer does not work here.  discount only works for a certain product.

This is a bug.  The feature clearly should work in a category or with other attribute

EDIT:  after experimentation and thinking… this actually is not a bug.  it is one way of thinking.  buy x get y free with
“apply only to xxx” rules works for a certain product only, because that what the rule is telling; “apply only the products, which...”

I did get approximately what i needed by putting in “Condition” a “product subselection” rule:
---------
If ALL of these conditions are TRUE :

* If total quantity greater than 2 for a subselection of items in cart matching ALL of these conditions:
Category is 67
---------

and then in “Actions” just give 33.3% discount for those same products ("Apply only").

this way customers who buy any 3 products of that category, get 33% discount, ie. get 1 free.
This is close enough.

I tried doing this exactly and am still unable to get this to work.  Any help would be much appreciated.  I am trying to create a promotion where users can purchase any two products from a category and get a third product from the same category for free.
I used:
Conditions: If all of these conditions are true.
if total quantity equals or greater than 3 for a sub selection of items in cart matching all of these conditions
Category is 15,24 (both categories have the same products one is listed as hot items...)

Then in the Action tab:
Apply Percentage of product price discount as
discount amount 33.3

If all of these conditions are true
category is 15,24

No discount is being applied. Any ideas what I am doing wrong or if there is a fix for this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
pgoetzin
Jr. Member
 
Total Posts:  28
Joined:  2009-04-24
 

is the x for y rule working for you at all?
when you dont do any restrictions ?

in my case you get always the cheapest one for free we dont have a restriction for the category

i attached a screen shot of my rule ...

you can check it out on www.tarnava.de
just put 3 items in the shopping cart
then you get a discount ..
but there is still a small bug becaus the price of the first product in the shopping cart is not correct ... but total price is fine.

Image Attachments
1.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
Marcin85
Member
 
Avatar
Total Posts:  48
Joined:  2009-10-23
Worcester
 

works perfectly.
THX

 
Magento Community Magento Community
Magento Community
Magento Community
 
pakua.dk
Jr. Member
 
Total Posts:  10
Joined:  2009-07-30
 

I have tried and tried, but it is not working for me, no matter what i try. By 3 get 1 free - nothing happens.

Does anyone have a solution that works

best regards
Axel

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2