It sounds like you’ve followed the instructions to add a quantity selector to your product page, but it’s not showing up.
My proposed solution:
- First, make sure that you’ve placed the code correctly in your product-template.liquid or product-form.liquid (depending on your theme setup). Look for the code that controls the product’s quantity, and ensure it’s wrapped within the form that handles the product variant.
- If the selector is still not showing, check if there’s any conditional code blocking it or any errors in your browser’s developer console that might be preventing it from displaying.
- To add the quantity selector to multiple products, you’ll need to make the code reusable. You can modify the code to target specific product IDs, like this:
{% if product.id == 'specific-product-id' %}
{% endif %}
Repeat this logic for each product or use a common snippet if the selector should apply to all.
Hi @MSLEUNG
If you’re looking to add a Quantity Selector for specific products, I recommend trying Easify Product Options. I know you’re exploring coding solutions, but Easify offers a simpler, no-code approach. Here’s how it can help you:
- This is the app setting. It is very simple, to create your list, you just need to use Image Swatch in Easify Product Options.
- To use the quantity selector for an option value, go to Advanced Settings, enable Allow quantity selector for option value and edit the condition according to your needs
This app is very easy to use,if you’re interested, reach out to the Easify team for more details! 