'600', // px 'height' => '600', // px 'crop' => 1 // true ); $single = array( 'width' => '600', // px 'height' => '600', // px 'crop' => 1 // true ); $thumbnail = array( 'width' => '600', // px 'height' => '600', // px 'crop' => 0 // false ); // Image sizes update_option( 'shop_catalog_image_size', $catalog ); // Product category thumbs update_option( 'shop_single_image_size', $single ); // Single product image update_option( 'shop_thumbnail_image_size', $thumbnail ); // Image gallery thumbs } //Custom Hooking for Product Loop Page Items. function adviso_before_wc_title() { echo "
"; } add_action('woocommerce_before_shop_loop_item_title', 'adviso_before_wc_title', 15); function adviso_after_wc_title() { echo "
"; } add_action('woocommerce_after_shop_loop_item_title', 'adviso_after_wc_title'); /** * Remove the "shop" title on the main shop page */ function adviso_woo_hide_page_title() { return false; } add_filter( 'woocommerce_show_page_title' , 'adviso_woo_hide_page_title' ); /** * Change the Breadcrumb */ add_filter( 'woocommerce_breadcrumb_defaults', 'adviso_change_breadcrumb_delimiter' ); function adviso_change_breadcrumb_delimiter( $defaults ) { // Change the breadcrumb delimeter from '/' to '>>' $defaults['delimiter'] = ' '; return $defaults; } /* * WooCommerce Output Wrappers for for Single Product(single-product.php) and Product Archives(archive-product.php) */ add_action('woocommerce_before_main_content', 'adviso_single_custom_header', 1 ); function adviso_single_custom_header() { if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
cart->cart_contents_count, 'adviso'), WC()->cart->cart_contents_count);?>
cart->get_cart_total(); ?>
"; } add_action( 'woocommerce_shop_loop_item_title', 'adviso_product_title_wrapper_end', 11 ); function adviso_product_title_wrapper_end() { echo ""; } add_action( 'woocommerce_shop_loop_item_title', 'adviso_product_meta_wrapper_start', 11 ); function adviso_product_meta_wrapper_start() { echo "
"; } add_action( 'woocommerce_after_shop_loop_item_title', 'adviso_product_meta_wrapper_end', 10 ); function adviso_product_meta_wrapper_end() { echo "
"; } remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 ); add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 ); // Insert a div for Image and Sale Flash add_action( 'woocommerce_before_shop_loop_item', 'adviso_product_thumbnail_container_start', 11 ); function adviso_product_thumbnail_container_start() { echo '
'; } add_action( 'woocommerce_before_shop_loop_item_title', 'adviso_product_thumbnail_container_end', 11 ); function adviso_product_thumbnail_container_end() { echo '
'; } add_filter( 'woocommerce_loop_add_to_cart_args', 'adviso_material_classes', 10, 2 ); function adviso_material_classes( $args, $product ) { $args['class'] .= ' hello mdl-button mdl-js-button mdl-button--raised mdl-button--colored'; return $args; } add_filter( 'gettext', 'adviso_custom_view_cart', 20, 3 ); function adviso_custom_view_cart( $translated_text, $text, $domain ) { switch ( strtolower( $translated_text ) ) { case 'view cart' : $translated_text = ''; break; } return $translated_text; } /** * * Setting Up the Single Product Page * **/ remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_show_product_sale_flash', 3 );