Hello, I’m working with a client who plans on pushing an e-commerce store that only sells one product.
Our product can be useful if you buy a set of 2, 3 and even 6. I’ve already created variants for the product that includes a set of 2, 3 and 6 but realized that it will not be able to accurately track our inventory this way.
Keep in mind that I want our home page to be able to push 3 “variant” options with discounts applied but still link to the same product page and accurately track our inventory. So if a customer picks the “set of 3” it would apply the discount and take 3 products from our active inventory.
Any suggestions?
Also, please free to ask me questions if I did not explain that very well.
Thanks
I believe going to the discounts tab and selecting buy X get Y would be the choice you would need. You can then select a minimum qty of 2 for the product and then for the ‘get’ product you can select the same product of a qty of 1 for free. You can make this automatic so all they have to do is add the 3 products to their cart.
A little bit of custom coding needs to be done for this.
You can use tag to achieve this.
For e.g. if you have a product of Set of 3, set a tag name “SET3”.
If the product file(product.liquid) where there is quantity/add to cart button implementation, create a script that checks if the tag is present and adjust your logic to show the minimum quantity as three.
This product is a set of 3 products.
{% if product.tags contains "SET3" %}
{% endif %}
This code should help you get started with the logic. This code will set the starting quantity amount as 3.
Hope this gives you some idea on how to proceed ahead.