wip: deal with totals
This commit is contained in:
@@ -264,9 +264,11 @@ class Controllerextensiontgshophandle extends Controller
|
||||
}
|
||||
|
||||
$data['total_products_count'] = $this->cart->countProducts();
|
||||
$data['total'] = $this->cart->getTotal();
|
||||
} else {
|
||||
$data['text_error'] = $this->language->get('text_empty');
|
||||
$data['totals'] = [];
|
||||
$data['total'] = 0;
|
||||
$data['products'] = [];
|
||||
$data['total_products_count'] = 0;
|
||||
unset($this->session->data['success']);
|
||||
|
||||
Reference in New Issue
Block a user