Home › Forums › WoodMart support forum › Min/Max Quantities not working properly on carousels
Min/Max Quantities not working properly on carousels
- This topic has 8 replies, 2 voices, and was last updated 1 year ago by Artem Temos.
-
AuthorPosts
-
September 6, 2023 at 1:03 pm #493677
ProfijtwijnParticipantDear 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?
Kind regards,
Sebastian
September 6, 2023 at 2:54 pm #493735
Artem TemosKeymasterHello,
Could you please record a short video so we can see how to reproduce the issue on your website?
Kind Regards
September 6, 2023 at 4:12 pm #493787
ProfijtwijnParticipantHi,
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.
Kind regards,
Sebastian
September 6, 2023 at 4:15 pm #493788
ProfijtwijnParticipantHad 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
Artem TemosKeymasterYes, 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
ProfijtwijnParticipantHello Artem,
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:
Hi there,
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.
Image:
https://d.pr/i/k72zCk
Full Size: https://d.pr/i/k72zCkBy 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:
woocommerce_add_to_cart_validation
woocommerce_quantity_input_argsWith the additional functionality on the shop page, allowing quantities to be selected, there is also a specific JavaScript function involved. This is the function that shows when you try to change the quantity to something invalid on the shop page. See the screenshot below.
Image:
https://d.pr/i/Mynsgn
Full Size: https://d.pr/i/MynsgnIf 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.
Nic W
WooCommerce Happiness Engineer @ Automattic***
Hopefully these issues can be fixed. Thank you very much in advance!
Kind regards,
Sebastian
November 20, 2023 at 10:49 am #513713
Artem TemosKeymasterHello,
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 Regards
November 21, 2023 at 2:01 am #513959
ProfijtwijnParticipantHi Artem,
Hereby the information in the private content section.
Thank you again in advance!
Kind regards,
Sebastian
November 21, 2023 at 4:54 pm #514213
Artem TemosKeymasterHello,
Try to add the following element to your custom shop page layout https://prnt.sc/cLEvN_9v6z2q
https://prnt.sc/ISjWBDku6MLAKind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register