Removed unneccesary eager login
This commit is contained in:
parent
5ca30fa664
commit
e833fbca28
|
|
@ -53,7 +53,7 @@ class CartRule
|
|||
{
|
||||
$appliedCartRuleIds = [];
|
||||
|
||||
$this->calculateCartItemTotals($cart, $cart->items()->get());
|
||||
$this->calculateCartItemTotals($cart, $cart->items);
|
||||
|
||||
foreach ($cart->items as $item) {
|
||||
$itemCartRuleIds = $this->process($cart, $item);
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ trait CartTools
|
|||
return;
|
||||
}
|
||||
|
||||
foreach ($guestCart->items()->get() as $guestCartItem) {
|
||||
foreach ($guestCart->items as $guestCartItem) {
|
||||
try {
|
||||
$cart = $this->addProduct($guestCartItem->product_id, $guestCartItem->additional);
|
||||
} catch (\Exception $e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue