';
}
add_action( 'woocommerce_before_main_content', 'businesszen_before_main_content', 5 );
function businesszen_after_main_content() {
echo '';
}
add_action( 'woocommerce_sidebar', 'businesszen_after_main_content', 20 );
// remove title
add_filter('woocommerce_show_page_title', 'businesszen_hide_title' );
function businesszen_hide_title() {
return false;
}
// Change number or products per row to 3
add_filter('loop_shop_columns', 'businesszen_loop_columns');
if ( ! function_exists('businesszen_loop_columns')) {
/**
* Shop Page no. of column
*
* @since Mezze Pro 1.0
*
*/
function businesszen_loop_columns() {
if ( is_front_page() )
return 4; // 4 products per row
return 3; // 3 products per row
}
}
if ( ! function_exists('businesszenduct_link_open')) {
/**
* Shop Page no. of column
*
* @since Businesszen 1.0
*
*/
function businesszenduct_link_open() {
echo '
';
}
}
add_action('woocommerce_before_shop_loop_item', 'businesszenduct_link_open', 5);
if ( ! function_exists('businesszenduct_link_close')) {
/**
* Shop Page no. of column
*
* @since Businesszen 1.0
*
*/
function businesszenduct_link_close() {
echo '
';
}
}
add_action('woocommerce_after_shop_loop_item', 'businesszenduct_link_close', 20);
if ( ! function_exists('businesszenduct_featured_image')) {
/**
* Shop Page no. of column
*
* @since Businesszen 1.0
*
*/
function businesszenduct_featured_image() {
echo '';
}
}
add_action('woocommerce_before_shop_loop_item', 'businesszenduct_featured_image', 15);
if ( ! function_exists('businesszenduct_wrapper_close')) {
/**
* Shop Page no. of column
*
* @since Businesszen 1.0
*
*/
function businesszenduct_wrapper_close() {
echo '
';
}
}
add_action('woocommerce_before_shop_loop_item_title', 'businesszenduct_wrapper_close', 15);
if ( ! function_exists('businesszenduct_entry_content')) {
/**
* Shop Page no. of column
*
* @since Businesszen 1.0
*
*/
function businesszenduct_entry_content() {
echo '';
}
}
add_action('woocommerce_before_shop_loop_item_title', 'businesszenduct_entry_content', 20);
add_action('woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_link_open', 25);
add_action('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 20);
add_action('woocommerce_after_shop_loop_item', 'woocommerce_show_product_loop_sale_flash', 15);
remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
if ( ! function_exists('businesszenduct_sidebar')) {
/**
* WooCommerce sidebar
*
* @since Businesszen 1.0
*
*/
function businesszenduct_sidebar() {
if ( is_product() )
return;
if ( businesszen_is_sidebar_enable() ) {
get_sidebar();
}
}
}
add_action('woocommerce_sidebar', 'businesszenduct_sidebar', 10);