• Resolved mattrin

    (@mattrin)


    Hi – I really like the simplicity of the plugin.. it works for what I am looking for. I could not find any documentation on additional feature:
    1. Restrctict single vendor check out…

    If a customer is adding a few products, they should not be able to add products from other vendors before checking out… Is that Possible?

    https://www.ads-software.com/plugins/wc-vendors/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think matrin is talking about prevent a client can add to cart products from different vendors, this is a problem because products must be shipped from different locations, and therefore should have different shipping costs.

    How can you do to wc vendor prevent that clients add to cart products from different vendors? Please help, I’m not smart guy ??

    Thanks in advance.

    Hi FerTar,

    This will be an option in WC Vendors Pro when it is released in the next few months. You can do this now, of course, by customizing the code in the tutorial above to simply check the author (vendor) of the products in the cart, if they don’t all match the same author (vendor) then return an error with a note telling the customer to only add one vendors products at a time, or whatever message you like of course.

    Ben

    Sorry, I have the same problem of FerTar but I don’t understand the solution above, I’m waiting for the pro version and I would not try another plugin so please, explain me step by step the solution.

    Thanks

    Hi Achillem,

    The solution above is more or less a temporary hack that allows only one product at a time to be purchased at checkout. It has no vendor based options, but you could customize that code instead of checking for only one product, to check if the product authors (vendors are really just authors of products) for all products in the cart are the same, and if they are, then allow checkout, if they are not, then show an error.

    https://stackoverflow.com/questions/21363268/need-woocommerce-to-only-allow-1-product-in-the-cart-if-a-product-is-already-in might also help as additional samples of code you can customize.

    While this is not a step by step (custom coding is up to you!) this should point you in the right direction.

    Ben

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restrict to single vendor check out’ is closed to new replies.