Skip to content
Advertisement

woocommerce cart custom thumbnail image image in cart

I want to show custom thumbnail images in cart. I made product with a custom attribute, say imageurl.

I used the hook below to make it work:

JavaScript

My code works well if I put a static url in place of "imageurlhere" but I want to pass a custom product attribute image url.

I am able to get the image url with

JavaScript

How do I use a custom product attribute image url in place of a static one?

Advertisement

Answer

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