Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#28270 Showed tier price for pre selected swatch via cart edit #29137

Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ define([
if ($(this.element).attr('data-rendered')) {
return;
}

$(this.element).attr('data-rendered', true);

if (_.isEmpty(this.options.jsonConfig.images)) {
Expand All @@ -320,6 +321,8 @@ define([
this._debouncedLoadProductMedia = _.debounce(this._LoadProductMedia.bind(this), 500);
}

this.options.tierPriceTemplate = $(this.options.tierPriceTemplateSelector).html();

if (this.options.jsonConfig !== '' && this.options.jsonSwatchConfig !== '') {
// store unsorted attributes
this.options.jsonConfig.mappedAttributes = _.clone(this.options.jsonConfig.attributes);
Expand All @@ -330,7 +333,6 @@ define([
} else {
console.log('SwatchRenderer: No input data received');
}
this.options.tierPriceTemplate = $(this.options.tierPriceTemplateSelector).html();
},

/**
Expand Down