Use product image of variable product if main product has no image (woocommerce)
Budget: €8 – €30 EUR
we only have products with variants in our woocommerce store. some of the parent products do not have a product image assigned, but the variants do.
task: create a script that checks if the parent products have an image. if not, use an image of a variant in the product archives and single product pages. if there is no image in either the parent articles or the variants, hide the article in archive views.
task: create a script that checks if the parent products have an image. if not, use an image of a variant in the product archives and single product pages. if there is no image in either the parent articles or the variants, hide the article in archive views.