All things Shopify and commerce
Hi, I ve found on internet this code:
<span class="input-amount">
<label for="quantity" class="hidden">{{ 'product.form.quantity' | t }}</label>
<input type="number" id="quantity" name="quantity"
{% if product.tags contains "MIN4" and current_variant.inventory_management == 'shopify' %}
value="4" min="4"
{% else %}
value="1"
{% endif %}
{% if current_variant.inventory_management == 'shopify' and current_variant.inventory_policy == 'deny' %}
max="{{ current_variant.inventory_quantity }}"
{% endif %}
required>
</span> “.i understand from this code that,on the products that I place the tag “ MIN4 “ it will be necessary to add at least 4 pcs .The point is that I can t find where exactly I should place this code..😔
my website is: www.aiciavem.ro using shella theme
Hi @sao,
Since you want the changes to take effect on the main product page, try pasting the code on main-product-page.liquid
The file name might be different as per theme, I have provided the brief idea
Hi,It s necessary to put it fix in a section or anywhere in this .liquid?
Find the part where the product quantity input is defined or the quantity selector is defined
Just after that add this code
Hope to have helped you,
Still need assistance let me know.
BR
Dawood Mirza
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025