cart_presenter->present( $this->context->cart ); ob_end_clean(); header('Content-Type: application/json'); $this->ajaxRender(json_encode([ 'preview' => $this->context->smarty->fetch(_PS_MODULE_DIR_.'ets_promotion/views/templates/hook/checkout/cart-summary.tpl',null,null, [ 'cart' => $cart, 'static_token' => Tools::getToken(false), ]), ])); } }