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?
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