Home › Forums › WoodMart support forum › Can’t enter a quantity of 1 on the mini cart.
Can’t enter a quantity of 1 on the mini cart.
- This topic has 5 replies, 2 voices, and was last updated 6 months ago by Artem Temos.
-
AuthorPosts
-
June 20, 2024 at 7:35 am #573992
voodoorabbit.com.auParticipantI am using a plugin that allows me to sell my products as decimal points.
Decimal Product Quantity for WooCommerce Version 12.39 | By WPGearEverything was working fine until I updated the theme and plugins on the website last week.
We now have an issue where you cannot enter a qty of 1 on the mini cart widget for any item that uses decimal points.
You can enter any other number and it displays correctly. But if you enter 1 it shows as 0.25 (or the minimum qty value for that product) in the quantity field but shows the quantity x pricing correctly underneath.The issue is only on the mini cart widget, everything works correctly on the shopping cart and checkout pages.
I have been in contact with WPGear the developer of the decimal point plugin and they think that it is JS error on the mini-cart.
Any help would be appreciated.Attachments:
You must be logged in to view attached files.June 20, 2024 at 9:28 am #574014
Artem TemosKeymasterHello,
We have investigated this issue but couldn’t find the reason for this bug. It is not caused by our JavaScript. It appears to be more related to the PHP handler of the mini cart update action. Unfortunately, we don’t have a workaround at the moment. You may try to ask the plugin developers to investigate this further or disable this input in the mini cart.
If you have any other questions or need further assistance, please let us know.
Best regards
June 20, 2024 at 9:46 am #574021
voodoorabbit.com.auParticipantWho/what controls the PHP handler of the mini cart update action. Is it the theme or Elementor?
June 20, 2024 at 2:12 pm #574167
Artem TemosKeymasterThe mini cart quantity update handler is a part of our theme’s code.
June 24, 2024 at 9:50 am #574824
voodoorabbit.com.auParticipantWe have looked into this issue further and feel that it is a bug in the Woodmart code.
The issue was caused because the input_name value “quantity” is used for actual input fields (e.g. on the Product details page) and this conflicts with other plugins that implement woocommerce_quantity_input_args. The cart page already uses a different value for the input_name field when calling woocommerce_quantity_input to render the input box.We fixed the issue by copying the same code to the mini-cart: https://gist.github.com/sammyblueeyes/50462d5f87595dd71fb00d1bca5bb8fc
June 24, 2024 at 10:44 am #574855
Artem TemosKeymasterHello,
Thank you for posting your solution here. We will check it and implement in the next theme update.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register