style updates

This commit is contained in:
2025-04-28 11:54:40 +03:00
parent 38f5152b16
commit 13cb3bf940
4 changed files with 8 additions and 7 deletions

View File

@@ -292,7 +292,7 @@ class B2BPayments extends PaymentModule implements PrestaShop\PrestaShop\Core\Mo
if ($hookName == 'breadcrumb_price_visibility_switch') { if ($hookName == 'breadcrumb_price_visibility_switch') {
if ($this->isCustomerB2B(null)) { 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 ''; return '';
} }
@@ -306,7 +306,7 @@ class B2BPayments extends PaymentModule implements PrestaShop\PrestaShop\Core\Mo
} }
$this->smarty->assign($this->getWidgetVariables($hookName, $configuration)); $this->smarty->assign($this->getWidgetVariables($hookName, $configuration));
if ($hookName == 'breadcrumb') { 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'); return $this->fetch('module:' . $this->name . '/views/templates/hook/b2b_switch.tpl');

View File

@@ -5,7 +5,7 @@
margin: 10px 0; margin: 10px 0;
} }
</style> </style>
<div class="col-md-6 col-lg-3"> <div class="payment-switcher">
<div class="payments-selection"> <div class="payments-selection">

View File

@@ -7,7 +7,7 @@
* Provides a select element to switch between showing VPC, MPC, or both prices. * Provides a select element to switch between showing VPC, MPC, or both prices.
* Saves the user's preference in localStorage. * Saves the user's preference in localStorage.
*} *}
<div class="col-md-6 col-lg-3"> <div class="price-display-switcher">
<div id="price-display-switcher" class="payments-selection"> <div id="price-display-switcher" class="payments-selection">
<select id="priceDisplayToggle" name="price_display_preference" class="custom-select"> <select id="priceDisplayToggle" name="price_display_preference" class="custom-select">
{* Default option, selected if nothing is stored or if 'both' is stored *} {* Default option, selected if nothing is stored or if 'both' is stored *}

View File

@@ -1,5 +1,6 @@
{if $mpc} {if $mpc}
<div class="mpcrender" style="display: none;"> <div class="b2c-price-block mpcrender">
<b> {$mpc}</b> <span class="b2c-price-label">MPC:</span>
<span class="b2c-price">{$mpc}</span>
</div> </div>
{/if} {/if}