code4business / freeproduct2

Magento2 extension that allows creating sales rules that add gift products.
64 stars 28 forks source link

Duplicate free gift when we are updating other products on cart page #41

Open desaiuttam opened 1 year ago

desaiuttam commented 1 year ago

Preconditions

Settings / Sale Rules

  1. Adding Free Gift from promotion rule
  2. On removing any other product from the cart or updating the product from the cart it will duplicate the free gift on the cart page. also, it will be the same on sometimes page refresh.

Steps to reproduce

  1. Adding free gift in the promotion rule
  2. Add to cart products which having free gifts, and add other few more products without free gifts as well
  3. Now remove any product from the cart or refresh the page - random time free gift will be duplicate

Expected result

  1. on refresh or remove any products - free gift needs to be single only

Actual result

  1. Duplicate the free gift items on random basis
domeglic commented 1 year ago

Does this bug also happen when using the latest version 1.3.1?

desaiuttam commented 1 year ago

Yes, it's happen for new version as well.

desaiuttam commented 1 year ago

@domeglic let me know if you are able to reproduce the same?