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

Variable products with Missing or invalid images issue #2449

Open
2 tasks done
johndcoy opened this issue Jan 11, 2023 · 2 comments
Open
2 tasks done

Variable products with Missing or invalid images issue #2449

johndcoy opened this issue Jan 11, 2023 · 2 comments

Comments

@johndcoy
Copy link

🔎 Isolate the bug

  • I have confirmed this occurs in the most recent version of WordPress, WooCommerce, and Facebook for WooCommerce.
  • I have confirmed this occurs when only WooCommerce and Facebook for WooCommerce are active and when using a default WordPress or WooCommerce theme.

✍️ Describe the bug

When a variable product is newly created in WooCommerce, and the variations are set to "Use variation image" for the Facebook Product Image option, the items are created in Facebook with the "Missing or invalid images" issue.

🚶‍♀️ Steps to reproduce

  1. From the Add New Product page, choose Variable product for Product Data
  2. Upload an image to the Product Image
  3. Add Attributes and use them for variations ( the fewer the better, for testing )
  4. Create Variations from attributes.
  5. Edit each of the variations to include a price
  6. Without including a variation image, set the Facebook Product Image option to "Use variation image" ( https://d.pr/i/OgoLwg )
  7. Repeat steps 5 and 6 for all variations.
  8. Tick the publish button
  9. Check Catalog > Items on Facebook to see the issue:

Screenshot
Screenshot link: https://d.pr/i/nXFATA

✔️ Expected behavior

Although the expected result would be for there to be a missing image message, users should not be allowed to use the option "Use variation image" when no image has been uploaded. Otherwise, the option should fall back on the parent or the WooCommerce Core Placeholder image found under WooCommerce > Settings > Products > Placeholder image.

@johndcoy
Copy link
Author

The solution to this issue is to create a new product and set the Facebook Product Image option to "Use parent image." Or...

  1. Delete the product from Facebook ( Screenshot link: https://d.pr/i/7intpT )
  2. Edit each of the variations to use the parent image. ( Screenshot link: https://d.pr/i/p9t2QN )
  3. Click Save changes then Update the product page.

@lauhakari
Copy link

Having the same issues as @johndcoy .

All the products in the shop in question have variations set to use "parent image". Have tried deleting them and re adding them to FB but no luck. Still it says the image on some variations is invalid, but other variations on same product can have valid image. Which makes the whole thing very very weird (as they use the same source image).

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

No branches or pull requests

3 participants