Added cart item add before event
This commit is contained in:
parent
ec2baa1be9
commit
e3bc993c99
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue