Index: vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php b/vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php --- a/vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php +++ b/vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php (date 1695864207448) @@ -427,7 +427,15 @@ $productAttribute = $attribute->getProductAttribute(); $productAttributeId = $productAttribute->getId(); if (isset($attributeData[$productAttributeId])) { - $ids[$product->getData($productAttribute->getAttributeCode())] = 1; + $key = $product->getData($productAttribute->getAttributeCode()); + if (empty($key) && $productAttribute->getAttributeCode() === 'width') { + try { + $reloadProduct = ObjectManager::getInstance()->get(\Magento\Catalog\Model\ProductRepository::class)->getById($product->getId(), false, $product->getStoreId(), true); + $key = $reloadProduct->getData($productAttribute->getAttributeCode()); + } catch (\Exception $e) { + } + } + $ids[$key] = 1; } } }