Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WooCommerce Re: WooCommerce

#93770

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