Skip to content

Commit

Permalink
MAGETWO-52925: Simple child product without a special price still sho…
Browse files Browse the repository at this point in the history
…wn as "was (original price)" #4442 #5097
  • Loading branch information
Sergey Semenov committed Aug 31, 2016
1 parent 38c85a6 commit 5e4616f
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 5e4616f

Please sign in to comment.