when customer select 6 then i want to display 6, 12, 18, 24, 30, 36…60 quantity drop down. similarly with 12packs (12, 24, 36…120) and 24 packs (24, 48, 72…240).
I am not developer, but can manage copy paste code and trouble shooting if given code example and which file/folder to put it in.
it will be applicable to some product only, so will be managing the option through product variant setup individually. but open to creating separate product template if that’s better solution.
As mentioned before, it is a complex requirement and requires you to have experience with the code, otherwise, I recommend you to hire a professional for it. You can follow the suggestion with the following steps:
Step 3: You need to add JS code in theme.js file to check and display quantity according to variant value.
This needs to be changed and tested directly with the code so it will be difficult for someone to guide you in more detail. Hope it gives you ideas about this.
If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
Although it has been a while since your topic was raised, I would still like to suggest a simple solution for you and other members who may encounter a similar issue in the future, no coding required .
Add a second option for customers to choose from after selecting “6 packs.” Use the Dropdown option type and set up Conditional Logic to display this option only when customers select “6 packs” in the Pack-size option.
Add a third option for customers to choose from after selecting “12 packs.” Utilize the Dropdown option type and set up Conditional Logic to show this option only when customers select “12 packs” in the Pack-size option.
Add a fourth option for customers to choose from after selecting “24 packs.” Apply the Dropdown option type and set up Conditional Logic so that this option appears only when customers select “24 packs” in the Pack-size option.
Regarding the Quantity options, instead of using a Dropdown with a large number of options, you can utilize the Quantity option type provided by the Easify Product Options app. This allows customers to enter the desired quantity directly, and the total price will be automatically calculated based on the quantity entered: