0

I need to transfer all my records from OpenCart to WooCommerce powered WordPress site. I used custom query to insert the image urls from opencart db to wp_posts as attachment and guid as the URL of the image, along with post_parent being the product id for that particular image. While the listings show in Media, it still does not load show images and also does not appear on Featured Image box of related products. But if I copy the url from Media manager and open it in new tab. The image shows up just fine. What could be the reason?

Also is there any other way to transfer OpenCart data to WooCommerce? Any help would be appreciated.

Regards

7
  • In the media library, is the image being shown as "attached" to a post/post_id?
    – Adam
    Commented Jun 28, 2013 at 5:41
  • to make an image appear as a featured image for a post, you have to add a meta key named _thumbnail_id with the image's ID.
    – Milo
    Commented Jun 28, 2013 at 6:14
  • @userabuser it shows the product name under Uploaded to Section. Commented Jun 28, 2013 at 6:38
  • @Milo will try that. but since i saw only two postmeta added to other featured images, I did only that. Commented Jun 28, 2013 at 6:39
  • @Milo I tried what you said, but still it does not show up Commented Jun 28, 2013 at 7:15

1 Answer 1

0

I am sorry for the incomplete question. Also I managed to solve it. It was missing "_wp_attachment_metadata" post meta.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.