Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Restrict Buyers To Add Products To Cart From A Single Vendor At One Time Rate Topic   - - - - -

 
  • sunil0907
  • Member
  • Trial users
  • Join Date: 14-Sep 16
  • 47 posts

Posted 13 October 2016 - 09:16 PM #1

Hello,

 

I'm working on a multi-vendor marketplace, and one of my requirements is to restrict buyers to add products to cart from multiple vendor at one time.

 

Detailed requirement:

1. A user can add multiple products from one vendor, but only after the order for that vendor is completed or checked-out the user can add products from another vendor. At any point the cart should contain products only from one vendor. This check should be on the Add To Cart action.

2. If the user tries to add product(s) from another vendor in a non-empty cart then he should get a warning or info message that "The user cannot add products from multiple vendors in the cart, so he should checkout or delete the product(s) already present in the cart from the earlier vendor".

3. This is needed for simplifying the shipping and payments steps, as I have added some custom payment methods that is specific to my marketplace.

 

Please suggest how can I achieve this.

 

Thanks,

Sunil



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11207 posts

Posted 14 October 2016 - 02:44 AM #2

The shipping methods should already be broken down by vendors with products in the cart.

 

Are you using Braintree or other payment methods that will only allow you to transfer funds to a single entity from a single CC transaction?

 

This could be done, but it would make a difficult and confusing customer experience and wouldn't model anything that customers might be used to seeing in other mult-vendor type marketplace environments.

 

We are working on a module that will allow you to pay multiple vendors after a single CC transaction (basically it's a secondary payment action for distributing funds while leaving the customer with a single CC transaction).  This module is also being designed to mimic an "escrow" account by being able to delay payment to vendors for N days after an order reaches a certain order status.  I.e. 10 days after it's shipped.   Right now it works with Paypal Business Mass Pay but we're also looking at products like Dwolla, etc. that will do ACH transfers. 


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Vivek Gupta
  • Senior Member
  • Members
  • Join Date: 09-Jul 15
  • 247 posts

Posted 14 October 2016 - 05:17 AM #3

deleted  


Vivek Gupta 
 


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18934 posts

Posted 14 October 2016 - 06:38 AM #4

Use the check_add_to_cart_post hook in the fn_check_add_product_to_cart function (app/functions/fn.cart.php) to compare product vendor with other products in cart.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sunil0907
  • Member
  • Trial users
  • Join Date: 14-Sep 16
  • 47 posts

Posted 18 October 2016 - 09:41 PM #5

The shipping methods should already be broken down by vendors with products in the cart.

 

Are you using Braintree or other payment methods that will only allow you to transfer funds to a single entity from a single CC transaction?

 

This could be done, but it would make a difficult and confusing customer experience and wouldn't model anything that customers might be used to seeing in other mult-vendor type marketplace environments.

 

We are working on a module that will allow you to pay multiple vendors after a single CC transaction (basically it's a secondary payment action for distributing funds while leaving the customer with a single CC transaction).  This module is also being designed to mimic an "escrow" account by being able to delay payment to vendors for N days after an order reaches a certain order status.  I.e. 10 days after it's shipped.   Right now it works with Paypal Business Mass Pay but we're also looking at products like Dwolla, etc. that will do ACH transfers. 

 

I agree that this requirement is different from what users are used to seeing in conventional multi-vendor marketplace types, but users of my wholesale marketplace will be comfortable with this requirement, as currently this is how it happens in the offline market.

 

In my marketplace payments by credit card(CC) is rare, so not keeping it as a payment type. Mostly the payments types are bank transfers or personal cheque payments or COD.



 
  • sunil0907
  • Member
  • Trial users
  • Join Date: 14-Sep 16
  • 47 posts

Posted 18 October 2016 - 09:42 PM #6

deleted  

Hello Vivek,

 

I did not get want you are referring to, can you please elaborate.

 

Thanks,

Sunil



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11207 posts

Posted 18 October 2016 - 09:50 PM #7

Then Ecom's approach would be one way to achieve this limitation.

 

Still not sure why you want to limit what a customer can purchase at one time versus forcing them to do a separate selection and checkout for each vendor's products.  But I do understand there are many business rules that I'm not aware of.  Reminder that in MVE there is actually a separate order generated for each Vendor that has products in the order.  So I'm assuming there is some relationship to the check/cod/terms that a purchaser uses where you want that specific transaction related to only one vendor.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Vivek Gupta
  • Senior Member
  • Members
  • Join Date: 09-Jul 15
  • 247 posts

Posted 19 October 2016 - 03:42 AM #8

Please check pm

Vivek Gupta