All things Shopify and commerce
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.
Hi @newbie_01
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.
Thanks.
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?
HI @newbie_01
This is only available in B2B commerce stores. You can see documentations here
That's a bummer, but at least we have an answer. Thanks!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024