Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image order problem #68

Open
LjuAdmir opened this issue Jun 1, 2021 · 0 comments
Open

Image order problem #68

LjuAdmir opened this issue Jun 1, 2021 · 0 comments

Comments

@LjuAdmir
Copy link

LjuAdmir commented Jun 1, 2021

Hello,

When adding a new product with the REST API module, I make sure that the image order is correct, so that the first image becomes the display image. Since we are using REST API v3, there is no position attribute.

The generated python dictionary has correct order, but the images on the product are not.
In this snippet of generated dictionary you can see the order of images, as you can see in the name of the image file, last number is positional index that indicates what order we want the images in.
"images": [{ "src": "https://mana.hal.si/wp-content/uploads/products/2321049000003_22_0.png", "alt": "Baby majica" }, { "src": "https://mana.hal.si/wp-content/uploads/products/2321049000003_22_1.png", "alt": "Baby majica" }, { "src": "https://mana.hal.si/wp-content/uploads/products/2321049000003_22_2.png", "alt": "Baby majica" }]

Any idea why this could be happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant