Meanwhile I replaced some code to get better images in wp-content/plugins/perfect-woocommerce-brands/templates/shortcodes/product-carousel.php. But I’d certainly prefer an “official” solution.
$product_meta = get_post_meta($product['id']);
$pm = $product_meta['_thumbnail_id'][0];
if ($pm) {
$image = wp_get_attachment_image( $pm, 'shop_catalog' );
} else {
$image = '<img src="wp-content/plugins/woocommerce/assets/images/placeholder.png" alt="Placeholder" >';
}
echo $image;
-
This reply was modified 5 years, 3 months ago by
lausianne.
-
This reply was modified 5 years, 3 months ago by
lausianne.
Hi lausianne,
Copy the product-carousel.php
template to your theme and feel free to edit the image size as your needs. This ensure that you don´t lose the changes after the next update.
More details here: Overriding templates via a theme
Regards
Thank you. That’s a good temporary workaround. Still, I’m never too happy to override things. These can break anytime on updates. I hoped you could add an option to select sizes in the backend. (plus placeholder, ideally …)