->->Shopify Buy One Get One discount breaks cart functionality.
Steps to reproduce:
- Create a collection listing all products example
- Create a Buy One Get One Discount example
- Using this example code in react-js-buy folder, add a product that is part of the Buy One Get One discount (eg "Foundations in MDMA Safety, Therapeutic Applications & Research") to cart multiple times
Expected:
Cart should show line items with quantity.
You should be able to add or remove the line items from cart.
Actual:
Strange presentation in the cart with same variant split into multiple line items.
You're unable to remove line items from the cart which are involved in the BOGO discount.
Video Example: Here is a Loom video which demonstrates the issue
Reproduce the bug:
- cd into the react-js-buy directory
npm install
npm run start
- Then follow the steps to reproduce above
Codebase:
This react-js-buy code came from Shopify Repository for storefront-api-examples