How can I limit orders to one vendor per purchase on my website?

how to add a feature to my online website that will only allow customers to order from one vendor per order and if they add items from multiple orders to the cart, a message should be displayed restricting them from doing so

Hi @Apple4

Yes, it can be done you can write a script which will read cart item on load and if cart item exist it will disable the CTA and show the MSG.

Hi @gr_trading

Thanks for the advise but i personally am not too good at programming, so may i request you to provide a basic code that can perform the function as stated. I’m using the theme refresh and would really appreciate your help.