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 #6645 - for 2.1
  • Loading branch information
Sergey Semenov committed Nov 29, 2016
1 parent ec5a7f5 commit eb2ec29
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ define([
mediaGalleryInitial: [{}],

//
onlyMainImg: false
onlyMainImg: false,

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

/**
Expand Down Expand Up @@ -688,6 +691,11 @@ define([
}
);

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

/**
Expand Down

0 comments on commit eb2ec29

Please sign in to comment.