style updates
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
margin: 10px 0;
|
||||
}
|
||||
</style>
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="payment-switcher">
|
||||
<div class="payments-selection">
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Provides a select element to switch between showing VPC, MPC, or both prices.
|
||||
* 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">
|
||||
<select id="priceDisplayToggle" name="price_display_preference" class="custom-select">
|
||||
{* Default option, selected if nothing is stored or if 'both' is stored *}
|
||||
@@ -1,5 +1,6 @@
|
||||
{if $mpc}
|
||||
<div class="mpcrender" style="display: none;">
|
||||
<b> {$mpc}</b>
|
||||
<div class="b2c-price-block mpcrender">
|
||||
<span class="b2c-price-label">MPC:</span>
|
||||
<span class="b2c-price">{$mpc}</span>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user