Skip to content

Commit 666d4c0

Browse files
Fixed Special Price class not added in configurable product page
1 parent 946c6ba commit 666d4c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,8 @@ define([
952952

953953
isShow = typeof result != 'undefined' && result.oldPrice.amount !== result.finalPrice.amount;
954954

955+
$productPrice.find('span:first').toggleClass('special-price',isShow);
956+
955957
$product.find(this.options.slyOldPriceSelector)[isShow ? 'show' : 'hide']();
956958

957959
if (typeof result != 'undefined' && result.tierPrices && result.tierPrices.length) {

0 commit comments

Comments
 (0)