Skip to content
Snippets Groups Projects
Commit f65cbacb authored by Tang, Yu(ytang1)'s avatar Tang, Yu(ytang1)
Browse files

Merge pull request #160 from magento-fearless-kiwis/develop

[FearlessKiwis] Sprint 43-A: Bug fixes
parents 94761013 a9a70369
No related merge requests found
......@@ -162,7 +162,8 @@ class TierPrice extends AbstractPrice implements TierPriceInterface, BasePricePr
$qtyCache = [];
foreach ($priceList as $priceKey => $price) {
/* filter price by customer group */
if ($price['cust_group'] !== $this->customerGroup && $price['cust_group'] !== $this->groupManagement->getAllCustomersGroup()->getId()) {
if ($price['cust_group'] != $this->customerGroup &&
$price['cust_group'] != $this->groupManagement->getAllCustomersGroup()->getId()) {
unset($priceList[$priceKey]);
continue;
}
......
......@@ -73,8 +73,8 @@ $product = $block->getSaleableItem();
);
?><?php echo __('each') ?>
<?php if ($block->getShowDetailedPrice() !== false): ?>
<?php echo __('and') ?>&nbsp;<strong class="benefit"><?php echo __('save')?>
<span class="percent tier-<?php echo $index ?>"><?php echo $tierPriceModel->getSavePercent($price['price']) ?></span>%
&nbsp;<?php echo __('and') ?>&nbsp;<strong class="benefit"><?php echo __('save')?>
<span class="percent tier-<?php echo $index ?>">&nbsp;<?php echo $tierPriceModel->getSavePercent($price['price']) ?></span>%
</strong>
<?php endif ?>
<?php endif; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment