Skip to content

Commit

Permalink
Merge pull request #79 from magmodules/release/2.1.7
Browse files Browse the repository at this point in the history
Release/2.1.7
  • Loading branch information
Marvin-Magmodules authored Aug 27, 2024
2 parents 5dad214 + f401403 commit 993aafc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions Model/ProductData/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ private function getImageWithFallback(?array $imageData, array $storeIds): ?stri
}
}

foreach ($storeIds as $storeId) {
if (!empty($imageData[0][$storeId]['file'])) {
return $imageData[0][$storeId]['file'];
}
}

return $imageData[0][0]['file'] ?? null;
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magmodules/magento2-sooqr",
"description": "Sooqr integration for Magento 2",
"type": "magento2-module",
"version": "2.1.6",
"version": "2.1.7",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
18 changes: 9 additions & 9 deletions etc/adminhtml/system/data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
<comment>Select the attribute associated with the brand or manufacturer.</comment>
<config_path>sooqr_data/product_data/brand_attribute</config_path>
</field>
<!-- <field id="heading_image" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">-->
<!-- <label>Images</label>-->
<!-- <frontend_model>Magmodules\Sooqr\Block\Adminhtml\System\Config\Form\Field\Heading</frontend_model>-->
<!-- </field>-->
<!-- <field id="image_source" translate="label" type="select" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">-->
<!-- <label>Source</label>-->
<!-- <source_model>Magmodules\Sooqr\Model\Config\Source\ImageSource</source_model>-->
<!-- <config_path>sooqr_data/product_data/image_source</config_path>-->
<!-- </field>-->
<field id="heading_image" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Images</label>
<frontend_model>Magmodules\Sooqr\Block\Adminhtml\System\Config\Form\Field\Heading</frontend_model>
</field>
<field id="image_source" translate="label" type="select" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Source</label>
<source_model>Magmodules\Sooqr\Model\Config\Source\ImageSource</source_model>
<config_path>sooqr_data/product_data/image_source</config_path>
</field>
<!-- <field id="image_resize" translate="label" type="select" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">-->
<!-- <label>Resize Image</label>-->
<!-- <source_model>Magmodules\Sooqr\Model\Config\Source\ImageSize</source_model>-->
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<sooqr_general>
<general>
<enable>1</enable>
<version>v2.1.6</version>
<version>v2.1.7</version>
</general>
<credentials>
<environment>production</environment>
Expand Down

0 comments on commit 993aafc

Please sign in to comment.