Skip to content
Advertisement

Add products thumbnail to Woocommerce admin orders list

I would like to add futured image on admin view order pages in Woocommerce. New Column created, but the product image does not appear. What should I do to show the order thumbnail? Thanks.

JavaScript

Advertisement

Answer

Beware, as orders can have many products (many order items) and in this cas you will have many images (also it will weigh down the page)

Now Your 2nd function hook is wrong and will not do anything.

To so you need to loop through order items as follow:

JavaScript

Code goes in functions.php file of your active child theme (or active theme). Tested and works.

enter image description here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement