Skip to content

Commit

Permalink
Added Elvis operator for when getJsonSwatchSizeConfig returns empty
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjaap committed Mar 27, 2019
1 parent 20a1cde commit 1d95b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/templates/product/view/renderer.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"jsonSwatchConfig": <?php /* @noEscape */ echo $block->getJsonSwatchConfig(); ?>,
"mediaCallback": "<?= /* @escapeNotVerified */ $block->getMediaCallback() ?>",
"gallerySwitchStrategy": "<?php /* @escapeNotVerified */ echo $block->getVar('gallery_switch_strategy','Magento_ConfigurableProduct') ?: 'replace'; ?>",
"jsonSwatchImageSizeConfig": <?php /* @noEscape */ echo $block->getJsonSwatchSizeConfig() ?>
"jsonSwatchImageSizeConfig": <?php /* @noEscape */ echo $block->getJsonSwatchSizeConfig() ?: 'null'; ?>
},
"Magento_Swatches/js/configurable-customer-data": {
"swatchOptions": null<?php /* @noEscape */ //echo $swatchOptions ?>
Expand Down

0 comments on commit 1d95b70

Please sign in to comment.