Added cart item add before event

This commit is contained in:
Prashant Singh 2019-06-29 17:24:41 +05:30
parent ec2baa1be9
commit e3bc993c99
1 changed files with 2 additions and 0 deletions

View File

@ -1124,6 +1124,8 @@ class Cart {
$data['quantity'] = 1;
$data['product'] = $product->id;
\Event::fire('checkout.cart.add.after', $product->id);
$result = $this->add($product->id, $data);
if ($result) {