diff --git a/Block/Tag.php b/Block/Tag.php index 9bd6401..51efd6a 100644 --- a/Block/Tag.php +++ b/Block/Tag.php @@ -72,7 +72,11 @@ public function getConfigToString(): string } $config .= 'devicePixelRatioList: ' . $this->formatRatioList($this->config->getDevicePixelRatio()) . ', '; if ($this->config->isOrgIfSml()) { - $config .= 'params: {org_if_sml: 1}, '; + $config .= "params: 'org_if_sml=1&".$this->config->getLibraryOptions()."', "; + } else { + if ($this->config->getLibraryOptions()) { + $config .= "params: '".$this->config->getLibraryOptions()."', "; + } } $config .= 'token:\'' . $this->config->getToken() . '\' '; return $config; diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e8fbf..3a7007c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [2.0.4] - 2022-08-01 + +* Support ```params``` options with Library option +* Fix bug related to Swatch renderer, Catalog image not loaded through CI when change option in Catalog page + ## [2.0.3] - 2022-04-27 * Support Multiple store views(websites) diff --git a/composer.json b/composer.json index 0371337..3321760 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "ext-libxml": "*" }, "type": "magento2-module", - "version": "2.0.3", + "version": "2.0.4", "license": "BSD-3-Clause", "authors": [ { diff --git a/etc/module.xml b/etc/module.xml index 41a8b64..d7a468b 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,7 +1,7 @@ - + diff --git a/view/frontend/requirejs-config.js b/view/frontend/requirejs-config.js index eec98c8..c668f32 100644 --- a/view/frontend/requirejs-config.js +++ b/view/frontend/requirejs-config.js @@ -1,7 +1,8 @@ var config = { map: { '*': { - 'fotorama/fotorama':'Scaleflex_Cloudimage/js/fotorama' + 'fotorama/fotorama':'Scaleflex_Cloudimage/js/fotorama', + 'Magento_Swatches/js/swatch-renderer' : 'Scaleflex_Cloudimage/js/swatch-renderer' } } }; diff --git a/view/frontend/templates/tag.phtml b/view/frontend/templates/tag.phtml index 066a1f4..b6bf8be 100644 --- a/view/frontend/templates/tag.phtml +++ b/view/frontend/templates/tag.phtml @@ -25,7 +25,7 @@ window.lazySizesConfig.init = false; - +