Add to cart validation

29.05.2014 10:01
#1
matias.vilar
Joomshopping forum user no avatar
Name: matias
25.01.2014
Posts: 52
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
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25854
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: 52
Quote
Aw: Add to cart validation

OK. Thanks

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.