just a suggestion: product image @ review-order.php
-
None issue, just a suggestion: WC could also showing product image when in checkout page (as when in the cart). I do it manually with some changes in review-order.php, circa lines 96-100 (WC 2.1.2):
<td class="product-name"> <?php echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ); ?> <?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); ?> <?php echo WC()->cart->get_item_data( $cart_item ); ?> </td>
by:
<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>
and do some css adjusts.
It’s just a suggestion, and I’m sharing because I think it aggregates value to checkout process and may be interesting to somebody.
- The topic ‘just a suggestion: product image @ review-order.php’ is closed to new replies.