According to docs, Liquid offers a quantity_rule object, with 3 properties: min, max, increment.
I'm curious where are these properties pulled from, where should they be stored so Liquid can pull them and offer them to the front end.
They seem to be connected to the variant object, but on the back end the ProductVariant object doesn't have that field.
Thanks for any assistance.
Interesting. This seems to be new. You can use the following rule to set up the product variant quantity. I believe this is something to do with the changelog in Shopify. You can see this code being use in the Shopify FREE themes, inside the main-product.liquid under the Section folder.
Yes, the code in the theme looks very promising, but I can't find where is the actual data (min,max,increment) stored for each variant.
Good find on that changelog entry. It mentions catalogs. I tried making a new catalog but couldn't find quantity data there either.
Did you find the solution to your case? We are having a similar case where we want to specify increment quantity for each product and use it in the store front end?
This is only available in B2B commerce stores. You can see documentations here
Make the shift from discounts to donations, and witness your business not only thrive fina...By Holly Dec 4, 2023
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023