ergonode / exporter-shopware-6-backend

Ergonode - Exporter Shopware 6
Open Software License 3.0
2 stars 12 forks source link

Random cover image sent to shopware6 #15

Open kardi31 opened 3 years ago

kardi31 commented 3 years ago

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


Ergonode version: 1.0


Detailed information:
- PHP version:  7.4

Others:

krzysztofsurdy commented 3 years ago

Since this is urgent, I've create a fix on my own inspired by @kardi31 implementation.