Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize WooCommerce Quantity Selector

I'm trying to change the default +/- quantity selector into a drop down menu with a given amount of number options (i.e. 1-10).

Anyone know how to accomplish this?

Let me know if you'd like me to post any of the code related to this.

like image 521
Tomelower Avatar asked Aug 11 '26 01:08

Tomelower


1 Answers

I'd like to do this too. So far I found that the quantity markup is generated in woocommerce/templates/single-product/add-to-cart/quantity.php. You could make a copy of this file in a minimal mirror of the woocommerce/templates directory structure in your theme folder, e.g. in this case copy it to yourtheme/woocommerce/single-product/add-to-cart. There you can edit it without altering the plug-in and risk it being overwritten when the plug-in is updated.

like image 81
ivavid Avatar answered Aug 13 '26 23:08

ivavid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!