Min/Max Quantities not working properly on carousels
September 6, 2023 at 1:03 pm #493677
Dear sir / Madam,
On our website we use Woocommerce in combination with Woocommerce Min/Max Quantities for some products. On the shop, product, cart and checkout pages this works well with the quantity selector. If someone manually enters something other than 6 (in our case), they will receive a message that the value must be equal to or greater than the set value (in our case 6, 12, 18, etc).
However, on the front page and in product carousels this does not work properly. The quantity group is displayed correctly and with – and + people can also select the next quantity group. But if someone manually, for example, makes 4 of the quantity and clicks on add to cart, then this quantity will actually be added to the shopping cart instead of them being notified, such as on the product pages.
Do you have a solution for this?
SebastianSeptember 6, 2023 at 2:54 pm #493735
Could you please record a short video so we can see how to reproduce the issue on your website?
Kind RegardsSeptember 6, 2023 at 4:12 pm #493787
Thank you for the quick reply. Hereby the video. As you can see on the product page (first part of the video), the product isn’t added to the cart and people get a message it should be equal to 6 or higher.
In the second part, on the front page, people can change the amount to something else then 6, 12, 18 etc and the product will be added to the cart.
SebastianSeptember 6, 2023 at 4:15 pm #493788
Had to reduce the size. Hereby the video.
Attachments:You must be logged in to view attached files.September 6, 2023 at 4:31 pm #493797
Yes, it looks like this plugin works on the single product page only. Since default theme doesn’t have a quantity field on the shop page, it is not adapted to work there. You need to contact the plugin’s developer for help on this matter since we can’t do anything in this situation.November 18, 2023 at 2:06 pm #513446
We contacted WooCommerce because, in addition to the problem described earlier, no notifications are shown if something goes wrong. For example, normally if a minimum order value has been set but it has not been met, the customer receives a notification, but now an error appears at the checkout. In no case is it clear what a customer needs to adjust/do.
We have received an answer from WooCommerce and hopefully this can help you. We understand that not all plugins are always compatible, but in our opinion a plugin made by WooCommerce should be compatible if a theme supports WooCommerce.
Here is the answer from WooCommerce:
Thanks for reaching out to Woo.com support about Min/Max Quantities. I understand the the issue is that you can set a non-valid product quantity on the shop page.
We were able to do this ourselves.
By default, WooCommerce does not offer the opportunity to change product quantities on the shop page. This functionality is being added by your theme, Woodmart.
The way in which this functionality is added by-passes default WooCommerce processes which are used by Min/Max Quantities to add the “group by” functionality to product quantities.
Because Min/Max Quantities does this level of checking at the time of add to cart but your theme uses it’s own Add to cart functionality, the notices are also not executed as expected.
In short, Min/Max Quantities and your theme, Woodmart, are not working well together. You’ll need to reach out to the developers of Woodmart to find out if they are using the default WooCommerce actions and filters correctly. It looks as if the following filters (at least) have been skipped somehow:
If we can help to get this integration working correctly, please let us know what feedback you receive from the theme developers. We’re open to hearing from them on this, and trying to get everything working correctly.
Please let us know if you have any further questions. We will be happy to help.
WooCommerce Happiness Engineer @ Automattic
Hopefully these issues can be fixed. Thank you very much in advance!
SebastianNovember 20, 2023 at 10:49 am #513713
Please, send us your admin and FTP access. We will try to add the mentioned hooks on your website and see if it helps.
Kind RegardsNovember 21, 2023 at 2:01 am #513959
Hereby the information in the private content section.
Thank you again in advance!
SebastianNovember 21, 2023 at 4:54 pm #514213
- You must be logged in to create new topics. Login / Register