To add a quantity selector to your product page:
-
Navigate to your product page in the visual editor
-
Drag and drop an input block from the “forms” section in the insert tab onto your page (make sure the input is in the “product options form” layer)
- Navigate to the options tab and change the input type to “number”, give the input the name “quantity” (the name is case sensitive, make sure the name is all lower case), and a default value (e.g. 1). Now the quantity selector is functional.
If you would like to add a minimum value to your input (e.g. “1” so users can’t select 0 or negative numbers): navigate to the custom element attributes section in the styles tab and add a “min” property and set a minimum value.