Skip to content

Commit

Permalink
Merge pull request #635 from magento-south/BUGS-2.1
Browse files Browse the repository at this point in the history
[South] Bugs 2.1:
- MAGETWO-56998 [Backport] Simple child product without a special price still shown as "was (original price)" #4442 #5097 #6645 - for 2.1
  • Loading branch information
slavvka authored Nov 30, 2016
2 parents 673217a + 0fdb025 commit ed7beea
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 ed7beea

Please sign in to comment.