wc-api-python icon indicating copy to clipboard operation
wc-api-python copied to clipboard

Image order problem

Open LjuAdmir opened this issue 4 years ago • 0 comments

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?

LjuAdmir avatar Jun 01 '21 08:06 LjuAdmir