From 13cb3bf940b61fb08f3471576c609bd8c7739e45 Mon Sep 17 00:00:00 2001 From: panariga Date: Mon, 28 Apr 2025 11:54:40 +0300 Subject: [PATCH] style updates --- b2bpayments.php | 4 ++-- .../{breadcrumb.tpl => breadcrumb_payment_switcher.tpl} | 2 +- ...ty_switch.tpl => breadcrumb_price_display_switcher.tpl} | 2 +- views/templates/hook/mpc.tpl | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) rename views/templates/hook/{breadcrumb.tpl => breadcrumb_payment_switcher.tpl} (98%) rename views/templates/hook/{breadcrumb_price_visibility_switch.tpl => breadcrumb_price_display_switcher.tpl} (99%) diff --git a/b2bpayments.php b/b2bpayments.php index fcd26d4..15baa08 100644 --- a/b2bpayments.php +++ b/b2bpayments.php @@ -292,7 +292,7 @@ class B2BPayments extends PaymentModule implements PrestaShop\PrestaShop\Core\Mo if ($hookName == 'breadcrumb_price_visibility_switch') { if ($this->isCustomerB2B(null)) { - return $this->fetch('module:' . $this->name . '/views/templates/hook/breadcrumb_price_visibility_switch.tpl'); + return $this->fetch('module:' . $this->name . '/views/templates/hook/breadcrumb_price_display_switcher.tpl'); } return ''; } @@ -306,7 +306,7 @@ class B2BPayments extends PaymentModule implements PrestaShop\PrestaShop\Core\Mo } $this->smarty->assign($this->getWidgetVariables($hookName, $configuration)); if ($hookName == 'breadcrumb') { - return $this->fetch('module:' . $this->name . '/views/templates/hook/breadcrumb.tpl'); + return $this->fetch('module:' . $this->name . '/views/templates/hook/breadcrumb_payment_switcher.tpl'); } return $this->fetch('module:' . $this->name . '/views/templates/hook/b2b_switch.tpl'); diff --git a/views/templates/hook/breadcrumb.tpl b/views/templates/hook/breadcrumb_payment_switcher.tpl similarity index 98% rename from views/templates/hook/breadcrumb.tpl rename to views/templates/hook/breadcrumb_payment_switcher.tpl index 1faa9f2..40dedac 100644 --- a/views/templates/hook/breadcrumb.tpl +++ b/views/templates/hook/breadcrumb_payment_switcher.tpl @@ -5,7 +5,7 @@ margin: 10px 0; } -
+
diff --git a/views/templates/hook/breadcrumb_price_visibility_switch.tpl b/views/templates/hook/breadcrumb_price_display_switcher.tpl similarity index 99% rename from views/templates/hook/breadcrumb_price_visibility_switch.tpl rename to views/templates/hook/breadcrumb_price_display_switcher.tpl index a503d8d..ff16398 100644 --- a/views/templates/hook/breadcrumb_price_visibility_switch.tpl +++ b/views/templates/hook/breadcrumb_price_display_switcher.tpl @@ -7,7 +7,7 @@ * Provides a select element to switch between showing VPC, MPC, or both prices. * Saves the user's preference in localStorage. *} -
+