How can I get quantities in a dropdown on the product page?
Here’s some code to help you get quantity ranges (like 10, 50, 100) in a dropdown on the product page. Put this code in your functions.php file. Then in your single product template, change the product variations function to read:
foxyshop_product_variations(0); my_foxyshop_qty();
Add that second function after it. Then you can add your quantity ranges separated by comma in the new “Qty Groups” box on the product entry page.
Posted in: Helpful Code Snippets