Product images on cart page
-
On the cart page the image thumbnail has an undefined source (src=”undefined”) so the product image does not show up in the cart.
I tried to fix it by copying the code from the sidebar cart and put it into the cart page but I couldn’t make it work.
Any suggestion on how to fix that?
Attachments:
You must be
logged in to view attached files.
Hello,
Thank you very much for choosing our theme and for contacting our support.
Please find the code in basel/woocommerce/cart/cart.php
if ( ! $product_permalink ) {
echo wp_kses_post( $thumbnail );
} else {
printf( '<a href="%s">%s</a>', esc_url( $product_permalink ), wp_kses_post( $thumbnail ) );
}
and replace it with this snippet:
if ( ! $product_permalink ) {
echo $thumbnail;
} else {
printf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $thumbnail );
}
Best Regards
Works like a charm! Thanks!
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘Product images on cart page’ is closed to new replies.