Bejkrools
Bejkrools

Reputation: 1157

Prestashop 1.6, abort add to cart product when condition

I want to create function where addition product to cart will be aborted (with message) when product met the condition (specific category). Where should i put condition code? I try to find method responsible for adding product to cart but i cant find it :-(

Upvotes: 0

Views: 419

Answers (1)

Serge P
Serge P

Reputation: 1863

For 1.6 core method responsible for adding product to cart is processChangeProductInCart() in /controllers/front/CartController.php

Upvotes: 1

Related Questions