Image order problem
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing product creation through the REST API v3 with the ordered image dictionary shown in the report, then inspect the created product's image order and display image. Compare the submitted order with the API response to determine whether the order is lost during request handling or by WooCommerce; done means identifying the cause and covering the expected ordering behavior.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Python
- Stars
- 216
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from woocommerce/wc-api-python
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
woocommerce/wc-api-python#108 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
woocommerce/wc-api-python#106 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
woocommerce/wc-api-python#105 ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
woocommerce/wc-api-python#104 ·
-
Json FormattingOpen
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
woocommerce/wc-api-python#103 ·
All issues in woocommerce/wc-api-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug difficulty:2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MakazhanAlpamys/Soup#3167 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
snap-stanford/Biomni#380 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jsboige/CoursIA#27768 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
rossant/awesome-math#206 ·