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 #6645 - for mainline
  • Loading branch information
Sergey Semenov committed Nov 29, 2016
1 parent d491a45 commit f5f9986
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ define([
// whether swatches are rendered in product list or on product page
inProductList: false,

// sly-old-price block selector
slyOldPriceSelector: '.sly-old-price',

// tier prise selectors start
tierPriceTemplateSelector: '#tier-prices-template',
tierPriceBlockSelector: '[data-role="tier-price-block"]',
Expand Down Expand Up @@ -837,6 +840,12 @@ define([
}
);

if (result.oldPrice.amount != result.finalPrice.amount) {
$(this.options.slyOldPriceSelector).show();
} else {
$(this.options.slyOldPriceSelector).hide();
}

if (result.tierPrices.length) {
if (this.options.tierPriceTemplate) {
tierPriceHtml = mageTemplate(
Expand Down

0 comments on commit f5f9986

Please sign in to comment.