Removed unneccesary eager login

This commit is contained in:
jitendra 2022-07-11 18:05:12 +05:30
parent 5ca30fa664
commit e833fbca28
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {