- This topic has 18 replies, 2 voices, and was last updated 1 month, 1 week ago by Tom.
March 4, 2021 at 7:55 am #1682054Jochen
I am selling mostly products based on weight. Hence, the customers will be able to order decimal quantities.
However, I just realised that I am not able to enter a Comma in the single-products quantity input, e.g. https://www.kraemerladen.bio/produkt/bio-datteln-medjool/
I figured out that this is due to the events fired by your theme on keyup, given in plugins/gp-premium/woocommerce/functions/js/woocommerce.min.js?ver=1.12.3 on line 1025.
Any quick fix for that?
jochenMarch 4, 2021 at 10:59 am #1682297TomLead DeveloperLead Developer
Is the issue only when manually inputting a number with a comma vs. a decimal?March 4, 2021 at 12:02 pm #1682367Jochen
How can I force generatePress to use the non-minified version?
It is only when manually inputting a number via keyboard. I just figured out, that it works if you enter a decimal value reeeeally fast.March 5, 2021 at 8:58 am #1683493TomLead DeveloperLead Developer
This is how to test the non-minified version: https://wordpress.org/support/article/debugging-in-wordpress/#script_debug
Does the same issue happen if you turn off the quantity buttons in Customize > Layout > WooCommerce?March 5, 2021 at 9:26 am #1683530Jochen
I realised some things:
– the issue does not occur in Edge
– the issues does not occur in Chrome
> It is just Firefox, even in Safe Mode.
– using quantity buttons from the plugin “Woocommerce Min Max Step Control” is not generating this issue
– using the non-minified js does not change anything
– any different character than a number brings up the issue (“,”, “.”,”-” ..)
ThanksMarch 6, 2021 at 10:19 am #1684746TomLead DeveloperLead DeveloperMarch 7, 2021 at 1:17 am #1685158Jochen
It is not an issue with the buttons turned off.March 7, 2021 at 9:07 am #1685692TomLead DeveloperLead DeveloperMarch 7, 2021 at 7:13 pm #1686082TomLead DeveloperLead Developer
I’m not able to get the standard quantity input to accept
,at all, even if I change the decimal separator in the WooCommerce settings, or set my WordPress language to a language that uses commas.
Can you link me to a page where it’s possible maybe?March 8, 2021 at 3:07 am #1686357Jochen
I disabled the themes quantity buttons. Now it is possible, but I would like to keep the buttons.March 8, 2021 at 9:55 am #1687079TomLead DeveloperLead DeveloperMarch 8, 2021 at 10:08 am #1687102Jochen
Well,that is getting more and more weird 😉
I am using a German keyboard setting. However, if I set it to English it works as well.
As soon as I enable the themes’ quantity button it is not possible in Firefox anymore.March 8, 2021 at 10:20 am #1687117TomLead DeveloperLead DeveloperMarch 8, 2021 at 10:25 am #1687128Jochen
as mentioned above I am using the plugin “Woocommerce Min Max Step Control”March 8, 2021 at 11:18 am #1687185TomLead DeveloperLead Developer
- You must be logged in to reply to this topic.