Home Forums Basel support forum Product images on cart page

Product images on cart page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #83342

    cvrhis
    Participant

    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.
    #83390

    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

    #83404

    cvrhis
    Participant

    Works like a charm! Thanks!

    #83460

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Product images on cart page’ is closed to new replies.