Merge pull request #1141 from prashant-webkul/development

Added cart item add before event
This commit is contained in:
Jitendra Singh 2019-06-29 17:50:14 +05:30 committed by GitHub
commit 842a0f77d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {