Open kardi31 opened 3 years ago
Code
Random image is exported to shopware6 as cover image.
https://github.com/kardi31/exporter-shopware-6-backend/blob/main/src/Infrastructure/Mapper/Product/ProductCoverMapper.php
First image in Ergonode should be sent as cover image.
Sort images by their actual position.
Ergonode version: 1.0 Detailed information: - PHP version: 7.4 Others:
Since this is urgent, I've create a fix on my own inspired by @kardi31 implementation.
Bug type
Code
Current behavior
Random image is exported to shopware6 as cover image.
Input Code
https://github.com/kardi31/exporter-shopware-6-backend/blob/main/src/Infrastructure/Mapper/Product/ProductCoverMapper.php
Expected behavior
First image in Ergonode should be sent as cover image.
Possible Solution
Sort images by their actual position.
Environment