woocommerce_before_quantity_input_field/woocommerce_after_quantity_input_field
-
Hello,
Recently you made some improves for quantity-input to change input type to ‘text’, ‘number’ or ‘hidden’ according to specific conditions current product has (https://prnt.sc/8oZEpssKCK10).
In my theme I improved basic browser input with plus & minus buttons for increasing/decreasing quantity of product to buy but now for some product my clients see next issue -> https://prnt.sc/UgNC32KEN6pN, those buttons are showing when they are not really needed but the input is hidden because of the ‘Limit purchases to 1 item per order’ option enabled -> https://prnt.sc/K4Gmn4dKl895.What I would ask you to implement is to add
$args
param to woocommerce_before_quantity_input_field & woocommerce_after_quantity_input_field hooks like here -> https://prnt.sc/Tlm5z_uamkLt
In such case I (and I think many other theme/plugin developers) will be able to check if those plus/minus button are needed to add for this product -> https://prnt.sc/lJA0Bcs0Mz20Additionaly to say I know that I can rewrite that file in my theme but that is my better to have globally so anyone could make it fixed in theme/plugin’s code without copying file inside that is also not allowed to do in 3rd-plugin from WooCommerce plugin.
Hope you understand my position fully and you will implement this small but vital thing in next update !
Regards, @stas0238
- The topic ‘woocommerce_before_quantity_input_field/woocommerce_after_quantity_input_field’ is closed to new replies.