use PrestaShop\PrestaShop\Adapter\Cart\CartPresenter;

——————————————————————————————————————————————–

$cart = Context::getContext()->cart;
$data = (new CartPresenter)->present($cart);

print_r($data);

 


cart products

{assign var=products value=$cart->getProducts()}

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...