assign('cart_amount', $cart['amount']); $view->assign('cart_subtotal', $cart['display_subtotal']); $view->assign('force_items_deletion', true); // The redirection is made in order to update the page content to see changes made in the cart when adding a product to it from the 'view cart' or 'checkout' pages. if (strpos($_SERVER['HTTP_REFERER'], 'dispatch=checkout.cart') || strpos($_SERVER['HTTP_REFERER'], 'dispatch=checkout.checkout')) { $ajax->assign('force_redirection', $_SERVER['HTTP_REFERER']); } $view->display('views/checkout/components/cart_status.tpl'); $ajax->assign('force_redirection', INDEX_SCRIPT."?dispatch=checkout$_suffix"); exit; } // If not just an add, force to checkout if( $mode == 'remote_add' ) $_suffix = ".cart"; fn_redirect(INDEX_SCRIPT."?dispatch=checkout$_suffix"); } return array(CONTROLLER_STATUS_OK); ?>