gaiterjones / magento-buy-x-get-y-free

Magento Buy X Get Y Free Module
43 stars 21 forks source link

"Y" doubled in "Category X Get Y Free" #2

Closed ahgood closed 9 years ago

ahgood commented 11 years ago

Here is the steps to recreate the issue:

  1. Category X Get Y Free has been set up and works fine.
  2. Add a product to cart, a free sample will be added to cart together. (2 items in cart, it's fine.)
  3. Login. (Magento will save the items in cart, 2 items in cart)
  4. Logout, and then add the same product to cart (2 items in cart)
  5. Login, don't go to shopping cart, you will see "My Cart (4 items)" display in topnav and "My Cart" module on right nav(My account dashboard), click the check out there, you will get 2 free sample("Y"), but if you click "My Cart (4 items)", additional 1 will be removed.

Does it make sense? I'm trying to solve the problem..

gaiterjones commented 11 years ago

They buy X code is triggered by the cart index controller. So if the cart is updated elsewhere it is possible the code that does the Buy X is not being triggered and updated.