• Resolved sc00

    (@sc00)


    Hi,

    is it possible to add 0 items to the cart? I have a client who’d like the customer to be able to add products to the cart despite setting the quantity to 0. It almost serves as a whishlist but with no extra step.

    The idea is to work with bulk order forms for variations not only on the product pages, but in the cart itself too. This appears to be a feature highly valued by business customers.

    Are you aware of any plugins that provide this functionality? Otherwise do you have any leads on how to change WooCommerce’s default behavior?

    Thanks and cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    is it possible to add 0 items to the cart? I have a client who’d like the customer to be able to add products to the cart despite setting the quantity to 0. It almost serves as a whishlist but with no extra step.

    Interesting approach!

    You could probably do this with custom code – I don’t know how complex it would be, so for example how the checkout process would handle products with a quantity of 0.

    I’d recommend working with a proper wishlist plugin that’s set up to handle this kind of scenario. Here’s the one that I recommend:
    https://woocommerce.com/products/woocommerce-wishlists/

    I hope that helps you in the right direction!

    Thread Starter sc00

    (@sc00)

    Thanks a lot! I discussed the wishlist option with my client before but I think it’s off the table.

    Exactly my thoughts! I figured if I was able to able to modify WooCommerce in a way to allow 0 items in the cart, the next big thing would be the effects on the checkout.

    As far as I can tell the minimum cart quantity is deeply embedded into WooCommerce. It appears to be limited on the product pages as well as altered during the add-to-cart and update-cart steps. Also opening the cart seems to remove all the items of quantity 0 (which I tested bei manually setting an item’s quantity of a session to 0 in the database). The real challenge as far as I’m concerned is to find all the functions and files involved.

    Do you – or does anyone else – happen to know, if it might be possibly to achieve the intended behavior with writing a plugin? Or will this only be possible by editing/overwriting the WooCommerce files directly?

    Thanks a lot!

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    I’m not a developer, but I can confirm that you’d definitely need to write a plugin for this, or at least a custom snippet. You don’t want to overwrite the core WooCommerce files, as your changes will be lost when you update the plugin.

    If you need help with the coding work, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Thread Starter sc00

    (@sc00)

    Thanks for the lead! Highly appreciated ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add 0 items to cart’ is closed to new replies.