Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    See https://docs.woothemes.com/document/template-structure/. You need to override the review-order.php template.

    Thread Starter Bojan Deni?

    (@evilmc)

    Ok, and can you help me what code need change or add?

    <tr class="<?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?>">
    						<td class="product-name">
    							<?php echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ) . '&nbsp;'; ?>
    							<?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '&times; %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); ?>
    							<?php echo WC()->cart->get_item_data( $cart_item ); ?>
    						</td>
    						<td class="product-total">
    							<?php echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); ?>
    						</td>
    					</tr>

    I add this file review-order.php from checkout on my theme, but nothing happen.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    echo $_product->get_image();

    Where did you copy the file to?

    Thread Starter Bojan Deni?

    (@evilmc)

    I copy from woocommerce/template/checkout folder review-order.php template.

    And I’m not developer, and this code you sent me, I don’t know where add?

    I google this code, but not works:

    <td class="product-name">
        <?php
            $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );
            if ( ! $_product->is_visible() ) echo $thumbnail;
            else printf( $thumbnail );
        ?>
        <span>
            <?php echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ); ?>
        </span>
        <?php echo WC()->cart->get_item_data( $cart_item ); ?>
        <?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); ?>
    </td>
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    I know where you copied from, but to where? Needs to be yourtheme/wocommerce/checkout/

    Thread Starter Bojan Deni?

    (@evilmc)

    Yes, I copyied on my theme folder wocommerce/checkout/

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Right so above this line: https://github.com/woothemes/woocommerce/blob/master/templates/checkout/review-order.php#L41

    Add <?php echo $_product->get_image(); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Product Images on Checkout page’ is closed to new replies.