How do I set a default product thumbnail on WooCommerce even if there is an existing product image on a product, but will not replace or change the existing one on the database? Hope someone can help, thank you in advance.
Question posted in Woocommerce
The official Woocommerce documentation can be found here.
The official Woocommerce documentation can be found here.
2
Answers
This one worked for me:
All right so let me explain the solution for you. You have to remove product loop original image thumbnail with the remove action. Then you have to insert new action which is calling the custom thumbnail. Don’t forget to replace
URL OF YOUR IMAGE HERE
with your image URL. For a single product you have to do the same. This code goes into functions.php file of your theme. Tested and works.