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

Woocommerce images wrong transfer #1200

Open
1 task done
cdesp opened this issue Mar 3, 2024 · 1 comment
Open
1 task done

Woocommerce images wrong transfer #1200

cdesp opened this issue Mar 3, 2024 · 1 comment
Labels
type:question Further information is requested.
Milestone

Comments

@cdesp
Copy link

cdesp commented Mar 3, 2024

Describe your question

When a product is being pulled the images, not the featured one but all the others, are not displayed correctly meaning it displays the wrong images, images from other product. I traced the problem looking in the database and i see that the _product_image_gallery field on metadata table has the same values (but not all of them) as the original, but the corresponding images are different on the new site so it displays the wrong image.

Example
on the original site
_product_image_gallery = 22474,22475,22477,22491,22492,22490,22505,22478,22481,22482

22482 | _wp_attached_file | 2024/02/Sento_21_2d3s_R_L.jpg

on the new/other site
_product_image_gallery = 22474,22492,22482

22482 | _wp_attached_file | 2024/01/38107ENJ30W1.jpg

as you can see totally different image.
I think the _product_image_gallery should get "translated" to the new ids on the new site.

The featured image has a different id and it works ok.

The woocommerce was updated to the latest version a few days ago maybe it has something to do with that.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@cdesp cdesp added the type:question Further information is requested. label Mar 3, 2024
@aaronware
Copy link

I suspect this happened due to a timeout when trying to send all those images over in a single request and the conversion didn't happen. We have a project that has a lot of grouped products with many hi-res images. In those scenarios it almost alway never completed the transfer and subsequently didn't update the IDs. To work around this. We only transfer the featured image and then use Action Scheduler to transfer all attachments as requests behind the scenes. It's slower to sync (not realtime) but very reliable. We've been doing this for a while so I don't necessarily think it due to the latest version of Woo, but there may be a change in woo I'm unaware of

@jeffpaul jeffpaul added this to the 2.1.0 milestone Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Further information is requested.
Projects
Status: Incoming
Development

No branches or pull requests

3 participants