Basically when the page loads it checks whether there's a pricing table, and if there is, it hides the input quantity field.
This could be a bit dependent on your theme, so if this does not work for you, please send me a link to your site / a page with a product, so I can check the classes of the input field on your site.
Hmm, it could be related to that but I am not completely sure. It could also be just that ".quantity .qty" does not correctly select the input quantity field, this can depend on the theme / other plugins, etc.
It would help if I could check your site / URL - I could then run that snippet in my browser and see what the issue is.
I want to suggest fixed quantity intervals for my customers, for example:
1, 5, 10, 50, 100, 200, 400, 1.000
besides these given quantities, i do not want to sell the products due to different reasons ( ease of production, packaging, etc...)
Therefore, i want to hide the native quantity selector of woocommerce for products that have a clickable pricing table
Attached files: Bildschirmfoto 2024-01-04 um 14.06.58.png
Hi Julien,
I wrote a code snippet that I believe can help achieve this.
The snippet is:
Basically when the page loads it checks whether there's a pricing table, and if there is, it hides the input quantity field.
This could be a bit dependent on your theme, so if this does not work for you, please send me a link to your site / a page with a product, so I can check the classes of the input field on your site.
Kind regards,
Stefan
somehow i cannot make it work, but i think you said it might only work on single products, not on variable products?
Hmm, it could be related to that but I am not completely sure. It could also be just that ".quantity .qty" does not correctly select the input quantity field, this can depend on the theme / other plugins, etc.
It would help if I could check your site / URL - I could then run that snippet in my browser and see what the issue is.
https://staging-ce7f-bghalbmueller.wpcomstaging.com/shop-2/200-stk-32x32x4-cm-pizzakarton-personalisiert/
you can check on this product
Please try replacing it with:
If that doesn't work, please share an admin login with us to your staging site, and we can then troubleshoot directly.
Sure, please use our email at [email protected] for the account
Please check if you have received the email for the staging account.
I just want to confirm I have received the email and I am able to access the site backend.
I will look into this and get back to you here with another message as soon as possible,
I believe I've been able to resolve it.
For future reference, I changed the snippet to the following one:
Let me know if you see any issue,
thank you so much, this is exactly what i needed!
is there any way to thank you by giving you a well deserved 5 star rating for excellent customer support??
Glad to hear that's working!
I would be very happy it if you are able to leave a rating here https://wordpress.org/support/plugin/b2bking-wholesale-for-woocommerce/reviews/?rate=5#new-post - it's a big help to us! Thank you