From 1d95b70f983d855303482c4a34c07c1acf1f4f5e Mon Sep 17 00:00:00 2001 From: Peter Jaap Blaakmeer Date: Wed, 27 Mar 2019 11:08:14 +0100 Subject: [PATCH] Added Elvis operator for when getJsonSwatchSizeConfig returns empty --- view/frontend/templates/product/view/renderer.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/frontend/templates/product/view/renderer.phtml b/view/frontend/templates/product/view/renderer.phtml index 5d81aea..dbba941 100644 --- a/view/frontend/templates/product/view/renderer.phtml +++ b/view/frontend/templates/product/view/renderer.phtml @@ -18,7 +18,7 @@ "jsonSwatchConfig": getJsonSwatchConfig(); ?>, "mediaCallback": "getMediaCallback() ?>", "gallerySwitchStrategy": "getVar('gallery_switch_strategy','Magento_ConfigurableProduct') ?: 'replace'; ?>", - "jsonSwatchImageSizeConfig": getJsonSwatchSizeConfig() ?> + "jsonSwatchImageSizeConfig": getJsonSwatchSizeConfig() ?: 'null'; ?> }, "Magento_Swatches/js/configurable-customer-data": { "swatchOptions": null