Skip to content

Commit b35b3b2

Browse files
author
Andrii Lugovyi
committed
MAGETWO-44825: Swatches does not update configurable product price
- not call _UpdatePrice in catalog area
1 parent d076c0a commit b35b3b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/SwatchRenderer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,13 @@ define(['jquery', 'underscore', 'jquery/ui'], function ($, _) {
467467
}
468468

469469
$widget._Rebuild();
470-
$widget._UpdatePrice();
470+
471+
if ($widget.element.parents($widget.options.selectorProduct)
472+
.find(this.options.selectorProductPrice).is(':data(mage-priceBox)')
473+
) {
474+
$widget._UpdatePrice();
475+
}
476+
471477
$widget._LoadProductMedia();
472478
},
473479

0 commit comments

Comments
 (0)