Skip to content
Snippets Groups Projects
Commit 1fac5bd9 authored by Aleksandr Osadchyi's avatar Aleksandr Osadchyi
Browse files

Merge remote-tracking branch 'origin/MAGETWO-52925' into BUGS

parents 0eb21dd8 25747b40
Branches
No related merge requests found
......@@ -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"]',
......@@ -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(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment