Skip to content

Commit 2413b70

Browse files
committed
BUG#AC-6330: Catalog shown as out of stock if show_of_stock_option enabled
1 parent f9adcd9 commit 2413b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ define([
506506

507507
if ($widget.options.jsonConfig.canDisplayShowOutOfStockStatus) {
508508
let salableProducts = $widget.options.jsonConfig.salable[item.id],
509-
swatchOptions = container.find('.swatch-option');
509+
swatchOptions = $(container).find(`[data-attribute-id='${item.id}']`).find('.swatch-option');
510510

511511
swatchOptions.each(function (key, value) {
512512
let optionId = $(value).data('option-id');

0 commit comments

Comments
 (0)