Home Forums WoodMart support forum Min/Max Quantities not working properly on carousels

Min/Max Quantities not working properly on carousels

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #493677

    Profijtwijn
    Participant

    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?

    Kind regards,

    Sebastian

    #493735

    Artem Temos
    Keymaster

    Hello,

    Could you please record a short video so we can see how to reproduce the issue on your website?

    Kind Regards

    #493787

    Profijtwijn
    Participant

    Hi,

    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

    #493788

    Profijtwijn
    Participant

    Had to reduce the size. Hereby the video.

    Attachments:
    You must be logged in to view attached files.
    #493797

    Artem Temos
    Keymaster

    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.

    #513446

    Profijtwijn
    Participant

    Hello 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/k72zCk

    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:

    woocommerce_add_to_cart_validation
    woocommerce_quantity_input_args

    With 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/Mynsgn

    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.

    Nic W
    WooCommerce Happiness Engineer @ Automattic

    ***

    Hopefully these issues can be fixed. Thank you very much in advance!

    Kind regards,

    Sebastian

    #513713

    Artem Temos
    Keymaster

    Hello,

    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

    #513959

    Profijtwijn
    Participant

    Hi Artem,

    Hereby the information in the private content section.

    Thank you again in advance!

    Kind regards,

    Sebastian

    #514213

    Artem Temos
    Keymaster

    Hello,

    Try to add the following element to your custom shop page layout https://prnt.sc/cLEvN_9v6z2q
    https://prnt.sc/ISjWBDku6MLA

    Kind Regards

Viewing 9 posts - 1 through 9 (of 9 total)