WooCommerce image output customization
How can I size the product thumbnails differently than the size shown on
the checkout page ? ( I want the product thumbs to be square, and the ones
on the checkout page to remain vertically oriented ).
I have the plugins "simple image sizes" and "regenerate thumbs", but if I
change the thumbnails settings in there, it affects the "thumbnails"
globally. Is there a way I can customize the output of the thumbnail image
sizes on the "single-product page" ( to be square, about 200x200 ) and
independent from the image size shown at the checkout page ?
I was able to accomplish this custom image sizing for the "mini-cart", and
"cart" pages by using this code :
$thumbnail = apply_filters( 'woocommerce_in_cart_product_thumbnail',
$_product->get_image(array( 50, 150 )), $values, $cart_item_key );
For the cart.php page, and this one on the mini-cart page:
<?php echo $_product->get_image( array( 50, 100 ) ); ?>
yes, but can't do that from functions :(
ReplyDelete