• Resolved stas0238

    (@stas0238)


    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/lJA0Bcs0Mz20

    Additionaly 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @stas0238

    Thanks for reaching out!

    Hello,

    Thank you for contacting WooCommerce.com support! We appreciate your feedback and suggestions on improving the quantity-input feature for our users.

    I understand that you have encountered an issue with the plus & minus buttons appearing when they are not needed, due to the Limit purchases to 1 item per order option being enabled. You have also provided a solution by suggesting the addition of $args param to woocommerce_before_quantity_input_field & woocommerce_after_quantity_input_field hooks, which would allow theme/plugin developers to check if those buttons are necessary for a specific product.

    We appreciate your input and recognize the importance of this feature for better user experience. I would suggest you raise this as an Enhancement Request here. While I cannot guarantee that this specific feature will be implemented, we are always looking for ways to improve our platform, and appreciate the time you took to provide this feedback.

    Additionally, I understand your preference for a global solution rather than rewriting the file in your theme. We strive to make our platform as flexible and customizable as possible for our users, and your feedback helps us achieve that goal.

    Thanks!

    Thread Starter stas0238

    (@stas0238)

    Hello @xue28

    Reading your answer is more like rephrasing what I wrote as a question but in your answer it is like confirmation of the same text. Anyway it is good that you support this improve and I hope you are much “closer” to WooCommerce developers to ask them to implement such “small but important” thing.

    Definitely I have already posted such question on github -> https://github.com/woocommerce/woocommerce/issues/37661 but usually it needs to wait for years (not a joke) for the positive answer like in one of my other questions -> https://github.com/woocommerce/woocommerce/issues/30455.

    Kind regards, @stas0238

    Saif

    (@babylon1999)

    Hello @stas0238,

    Definitely I have already posted such question on github -> https://github.com/woocommerce/woocommerce/issues/37661

    I understand that progress may be somewhat slow in the world of open-source software; however, rest assured that every enhancement request will be reviewed and given the necessary attention.

    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.

    Circling back to this part, I wanted to mention that, on my Storefront test site, the entire element is removed. Therefore, perhaps this modification may need to be addressed on a theme-by-theme basis, as you have already done.


    Link to image: https://d.pr/i/yKewUW

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘woocommerce_before_quantity_input_field/woocommerce_after_quantity_input_field’ is closed to new replies.