File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
view/base/templates/product/price Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,17 @@ protected function filterTierPrices(array $priceList)
162
162
$ qtyCache = [];
163
163
foreach ($ priceList as $ priceKey => $ price ) {
164
164
/* filter price by customer group */
165
- if ($ price ['cust_group ' ] !== $ this ->customerGroup && $ price ['cust_group ' ] !== $ this ->groupManagement ->getAllCustomersGroup ()->getId ()) {
165
+ $ eligible = false ;
166
+ if ($ price ['cust_group ' ] == $ this ->customerGroup ) {
167
+ $ eligible = true ;
168
+ } elseif ($ price ['cust_group ' ] == $ this ->groupManagement ->getAllCustomersGroup ()->getId ()) {
169
+ $ eligible = true ;
170
+ }
171
+ if (!$ eligible ) {
166
172
unset($ priceList [$ priceKey ]);
167
173
continue ;
168
174
}
175
+
169
176
/* select a lower price for each quantity */
170
177
if (isset ($ qtyCache [$ price ['price_qty ' ]])) {
171
178
$ priceQty = $ qtyCache [$ price ['price_qty ' ]];
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ $product = $block->getSaleableItem();
73
73
);
74
74
?> <?php echo __ ('each ' ) ?>
75
75
<?php if ($ block ->getShowDetailedPrice () !== false ): ?>
76
- <?php echo __ ('and ' ) ?> <strong class="benefit"><?php echo __ ('save ' )?>
76
+ <?php echo __ (' and ' ) ?> <strong class="benefit"><?php echo __ ('save ' )?>
77
77
<span class="percent tier-<?php echo $ index ?> "><?php echo $ tierPriceModel ->getSavePercent ($ price ['price ' ]) ?> </span>%
78
78
</strong>
79
79
<?php endif ?>
You can’t perform that action at this time.
0 commit comments