Shopify themes, liquid, logos, and UX
Hi,
How do I make it such that when customers go to the product page, the default quantity is already set to 6? However, we do want to allow customers to remove or add quantity with increments of 1, so that they can also order for example 2 or 9 products.
Hey @martijn18,
Can you share the link to your store please? Thanks!
marwijn.com
Hey @martijn18,
The store is password protected, can you share the password or disable it temporarily?
It’s off now!
Hey @martijn18,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Above the tag "</body>" tag paste the following. Screenshot attached for reference.
<script>
document.addEventListener('DOMContentLoaded', function() {
try {
document.querySelector('input.quantity__input').value = 6;
} catch {}
});
</script>
Screenshot for reference
Thank you, is it also possible to only do it for certain products? Maybe trough collections, product category of product type?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025