From 2e38cedcd13f84759601edf8310635aeb56eb801 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Tue, 28 Mar 2023 16:59:08 +0530 Subject: [PATCH] update breakdown variable name --- controllers/admin/AdminOrderPreferencesController.php | 2 +- controllers/front/OrderOpcController.php | 2 +- themes/hotel-reservation-theme/shopping-cart.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminOrderPreferencesController.php b/controllers/admin/AdminOrderPreferencesController.php index ea709c2ea..21b31f6a7 100644 --- a/controllers/admin/AdminOrderPreferencesController.php +++ b/controllers/admin/AdminOrderPreferencesController.php @@ -152,7 +152,7 @@ class AdminOrderPreferencesControllerCore extends AdminController 'identifier' => 'id', 'cast' => 'intval' ), - 'PS_AUTO_ADD_SERVICE_BREAKDOWN' => array( + 'PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN' => array( 'title' => $this->l('Show room price breakdown'), 'hint' => $this->l('Show a summary for prices of the auto added service add with room on shopping cart list.'), 'desc' => $this->l('This breakdown is always visible on room that have cart rule applied for that specific room.'), diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index 9d8cf3173..6db093fe5 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -467,7 +467,7 @@ class OrderOpcControllerCore extends ParentOrderController // 'defaultcurrencySign' => $objCurrency->sign, 'THEME_DIR' => _THEME_DIR_, 'PS_CUSTOMER_ADDRESS_CREATION' => Configuration::get('PS_CUSTOMER_ADDRESS_CREATION'), - 'PS_AUTO_ADD_SERVICE_BREAKDOWN' => Configuration::get('PS_AUTO_ADD_SERVICE_BREAKDOWN'), + 'PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN' => Configuration::get('PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN'), 'free_shipping' => $free_shipping, 'isGuest' => isset($this->context->cookie->is_guest) ? $this->context->cookie->is_guest : 0, 'countries' => $countries, diff --git a/themes/hotel-reservation-theme/shopping-cart.tpl b/themes/hotel-reservation-theme/shopping-cart.tpl index 1a979f43e..3b943c6d9 100644 --- a/themes/hotel-reservation-theme/shopping-cart.tpl +++ b/themes/hotel-reservation-theme/shopping-cart.tpl @@ -150,7 +150,7 @@ {displayPrice price=($rm_v['amount'])} - {if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_AUTO_ADD_SERVICE_BREAKDOWN)} + {if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN)}