I am looking for a filter/action hook (or any other way) to change image URL that is displayed on cart page as a thumbnail.
Example image: http://jamescollings.co.uk/wp-content/uploads/2014/12/cart-donation-form.png
I found that it is retrieved via $_product->get_image()
method, but I could not find anything similar to $_product->set_image()
.
I have found the answer:
The hook is
woocommerce_cart_item_thumbnail
.So in your
functions.php
addand your thumbnails will be replaced (more processing needed if you want to change each thumbnail individually).