wip: deal with totals

This commit is contained in:
Nikita Kiselev
2025-07-23 19:05:48 +03:00
parent 49d41747d3
commit f5cac7d566
2 changed files with 11 additions and 9 deletions

View File

@@ -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']);