Skip to content

Commit

Permalink
Merge pull request #160 from magento-fearless-kiwis/develop
Browse files Browse the repository at this point in the history
[FearlessKiwis] Sprint 43-A: Bug fixes
  • Loading branch information
Tang, Yu(ytang1) committed Mar 17, 2015
2 parents 9476101 + a9a7036 commit f65cbac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/code/Magento/Catalog/Pricing/Price/TierPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ protected function filterTierPrices(array $priceList)
$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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; ?>
Expand Down

0 comments on commit f65cbac

Please sign in to comment.