Skip to content

Commit

Permalink
MAGETWO-56998: [Backport] Simple child product without a special pric…
Browse files Browse the repository at this point in the history
…e still shown as "was (original price)" #4442 #5097 - for 2.1
  • Loading branch information
Sergey Semenov committed Sep 1, 2016
1 parent 98b0b2e commit 934df8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $schema = ($block->getZone() == 'item_view') ? true : false;
'schema' => $schema
]); ?>
</span>
<span class="old-price no-display">
<span class="old-price sly-old-price no-display">
<?php /* @escapeNotVerified */ echo $block->renderAmount($priceModel->getAmount(), [
'display_label' => __('Regular Price'),
'price_id' => $block->getPriceId('old-price-' . $idSuffix),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define([
'<% } %>',
mediaGallerySelector: '[data-gallery-role=gallery-placeholder]',
mediaGalleryInitial: null,
regularPriceSelector: '.old-price',
slyOldPriceSelector: '.sly-old-price',
onlyMainImg: false
},

Expand Down Expand Up @@ -500,9 +500,9 @@ define([
&& this.options.spConfig.optionPrices[optionId].oldPrice.amount
!= this.options.spConfig.optionPrices[optionId].finalPrice.amount
) {
$(this.options.regularPriceSelector).show();
$(this.options.slyOldPriceSelector).show();
} else {
$(this.options.regularPriceSelector).hide();
$(this.options.slyOldPriceSelector).hide();
}
}

Expand Down

0 comments on commit 934df8e

Please sign in to comment.