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. *} -
+