From 2c4a672a9f47a733eb1b3b3d2cc254e87e53aec9 Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Wed, 1 Jan 2025 17:40:33 -0500 Subject: [PATCH] Added language definition --- upload/catalog/controller/checkout/cart.php | 2 +- upload/catalog/language/en-gb/checkout/cart.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/upload/catalog/controller/checkout/cart.php b/upload/catalog/controller/checkout/cart.php index 072162e60..ca1d20f69 100644 --- a/upload/catalog/controller/checkout/cart.php +++ b/upload/catalog/controller/checkout/cart.php @@ -450,7 +450,7 @@ public function remove(): void { } if (!$this->cart->has($key)) { - $json['error'] = $this->language->get('error_product'); + $json['error'] = $this->language->get('error_product_not_found'); } // Remove diff --git a/upload/catalog/language/en-gb/checkout/cart.php b/upload/catalog/language/en-gb/checkout/cart.php index 8acc5fb26..c60c94f65 100644 --- a/upload/catalog/language/en-gb/checkout/cart.php +++ b/upload/catalog/language/en-gb/checkout/cart.php @@ -43,4 +43,5 @@ $_['error_minimum'] = 'Minimum order amount for %s is %s!'; $_['error_required'] = '%s required!'; $_['error_product'] = 'Warning: There are no products in your cart!'; +$_['error_product_not_found'] = 'Warning: Product could not be found!'; $_['error_subscription'] = 'Please select a subscription plan!';