Modify limit of quantities available to be ordered based on metadata for checkout

New Member
1 0 0



I just need someone to point me in the right direction. I want to create limits of what a customer can buy of each product based on metafield data. I will need to write some script to take into account other products in the cart and apply limitations based off of a calculation. 


Where is the script where shopify authenticates the quantity in the cart is below or equal too what is in stock for each individual item? Can I modify that script?


Shopify Expert
2529 423 535

Hi @azinGlY 

You want to add limitation on quantity on product page so user can by withing limit qty for all product?

then you can add simple tag in product with your qty and use this tag to add limit on qty selection box or you can use product qty as limitation.

Let me know if you need help 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here