Skip to content

Commit

Permalink
Fix fatal error on CartPresenter on PS 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt75 committed Oct 2, 2024
1 parent 04653ea commit f6d5a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Presenter/Cart/CartPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function present()

if (class_exists('\PrestaShop\PrestaShop\Adapter\Cart\CartPresenter')) {
$cart = new \PrestaShop\PrestaShop\Adapter\Cart\CartPresenter();
$cart = $cart->present($context->cart);
$cart = (array) $cart->present($context->cart);
}

if (false === isset($cart['totals']['total_including_tax']['amount'])) {
Expand Down

0 comments on commit f6d5a67

Please sign in to comment.