File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/Swatches/view/base/web/js Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ define([
311
311
if ( $ ( this . element ) . attr ( 'data-rendered' ) ) {
312
312
return ;
313
313
}
314
+
314
315
$ ( this . element ) . attr ( 'data-rendered' , true ) ;
315
316
316
317
if ( _ . isEmpty ( this . options . jsonConfig . images ) ) {
@@ -320,6 +321,8 @@ define([
320
321
this . _debouncedLoadProductMedia = _ . debounce ( this . _LoadProductMedia . bind ( this ) , 500 ) ;
321
322
}
322
323
324
+ this . options . tierPriceTemplate = $ ( this . options . tierPriceTemplateSelector ) . html ( ) ;
325
+
323
326
if ( this . options . jsonConfig !== '' && this . options . jsonSwatchConfig !== '' ) {
324
327
// store unsorted attributes
325
328
this . options . jsonConfig . mappedAttributes = _ . clone ( this . options . jsonConfig . attributes ) ;
@@ -330,7 +333,6 @@ define([
330
333
} else {
331
334
console . log ( 'SwatchRenderer: No input data received' ) ;
332
335
}
333
- this . options . tierPriceTemplate = $ ( this . options . tierPriceTemplateSelector ) . html ( ) ;
334
336
} ,
335
337
336
338
/**
You can’t perform that action at this time.
0 commit comments