Skip to content

Commit

Permalink
Add extension code to composer extra
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed May 23, 2024
1 parent c56609d commit 01640d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
},
"extra": {
"tastyigniter-extension": {
"code": "igniter.cart",
"name": "Cart",
"icon": {
"class": "fa fa-shopping-cart",
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function updateStock(int $quantity, $state = null, array $options = [])
$this->saveQuietly();

if ($this->hasLowStock() && $this->shouldAlertOnLowStock($state)) {
$this->mailSend('igniter.admin::_mail.low_stock_alert', 'location');
$this->mailSend('igniter.cart::mail.low_stock_alert', 'location');

// Prevent duplicate low stock alerts
$this->updateQuietly(['low_stock_alert_sent' => true]);
Expand Down

0 comments on commit 01640d0

Please sign in to comment.