Add to cart validation

29.05.2014 10:01
#1
matias.vilar
Joomshopping forum user no avatar
Name: matias
25.01.2014
Posts: 50
Quote
Add to cart validation

Hi,

I want to include a new validation into the "add to cart" routine: prevent users from adding products of different vendors.

This means that the first time, users are allowed to add to the cart any product but from the second product they must add only products of the same vendor. (otherwise, a system message should warn the user, the same as when an user try to add more products than the maximun amount).

I guess that there is no addon that make this, so:

┬┐could you guidance on what code should I change?

┬┐where's located the function that validates the cart?

Many thanks!!

 
29.05.2014 11:35
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16517
Quote
Aw: Add to cart validation

Create plugin.

See models/cart.php
function add
...

 
29.05.2014 18:45
#3
matias.vilar
Joomshopping forum user no avatar
Name: matias
25.01.2014
Posts: 50
Quote
Aw: Add to cart validation

OK. Thanks

 
Copyrights MAXXmarketing GmbH. All Rights Reserved