- This topic has 18 replies, 2 voices, and was last updated 3 years, 1 month ago by Tom.
-
AuthorPosts
-
March 4, 2021 at 7:55 am #1682054Jochen
Hej,
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?
Thanks,
jochenMarch 4, 2021 at 10:59 am #1682297TomLead DeveloperLead DeveloperHi there,
That’s strange, I’m not seeing anything in our javascript that would prevent this. The file you mentioned in the minified version – can you spot the issue in the non-minified version?
Is the issue only when manually inputting a number with a comma vs. a decimal?
March 4, 2021 at 12:02 pm #1682367JochenHej,
Thanks!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 DeveloperThis 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 #1683530JochenThanks,
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 (“,”, “.”,”-” ..)Any idea?
ThanksMarch 6, 2021 at 10:19 am #1684746TomLead DeveloperLead DeveloperDid you see if it was still an issue with the quantity buttons turned off?
March 7, 2021 at 1:17 am #1685158JochenIt is not an issue with the buttons turned off.
March 7, 2021 at 9:07 am #1685692TomLead DeveloperLead DeveloperThanks for confirming. I’ll test this some more and will get back to you 🙂
March 7, 2021 at 7:13 pm #1686082TomLead DeveloperLead DeveloperI’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 #1686357JochenI 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 DeveloperI’m not able to use a comma in there. What language is your keyboard set to?
March 8, 2021 at 10:08 am #1687102JochenWell,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 DeveloperAre you using a plugin or a specific setting to allow decimal steps in the quantity field?
March 8, 2021 at 10:25 am #1687128Jochenas mentioned above I am using the plugin “Woocommerce Min Max Step Control”
March 8, 2021 at 11:18 am #1687185TomLead DeveloperLead DeveloperCan you try replacing your
woocommerce.min.js
file with this?: https://pastebin.com/raw/Ldg6SJ1xAny change?
-
AuthorPosts
- You must be logged in to reply to this topic.