Home › Forums › CSS › WooCommerce › Re: WooCommerce
December 31, 2011 at 4:26 am
#93770
jessevlasveld
Member
You can set the image dimensions in your functions.php file. That way the images will be resized properly, and won’t be blurry or anything.
global $pagenow;
if ( is_admin() && isset( $_GET ) && $pagenow == 'themes.php' ) add_action('init', 'woo_install_theme', 1);
function woo_install_theme() {
update_option( 'woocommerce_thumbnail_image_width', '300' );
update_option( 'woocommerce_thumbnail_image_height', '300' );
update_option( 'woocommerce_single_image_width', '600' );
update_option( 'woocommerce_single_image_height', '600' );
update_option( 'woocommerce_catalog_image_width', '450' );
update_option( 'woocommerce_catalog_image_height', '450' );
}
Source: http://www.woothemes.com/woocommerce-codex/theming-woocommerce/#code-snippets