Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Random cover image sent to shopware6 #15

Open
kardi31 opened this issue Apr 30, 2021 · 1 comment
Open

Random cover image sent to shopware6 #15

kardi31 opened this issue Apr 30, 2021 · 1 comment

Comments

@kardi31
Copy link
Contributor

kardi31 commented Apr 30, 2021

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
Copy link
Contributor

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

@piotrkreft piotrkreft transferred this issue from ergonode/backend May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants