This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This gist creates a gift with purchase function that injects a product or multiple products into the cart when conditions are met. | |
**It is important to mention this function does not perform any discount that works separately current implementation is performed by the Shopify Scripts App | |
*This function is not considered good UX practice. | |
The conditions are cart threshold amount met or/and cart threshold amount met and conditional product applied to the cart. | |
When the conditions are no longer met the products are removed from the cart. | |
Create a new section, sections/gwp-injection.liquid |