Home Forums WoodMart support forum Woodmart 1.10.2

Woodmart 1.10.2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40603

    wanila
    Participant

    Hello!

    As you already know, lots of plugins are still not compatible with woocommerce 3.3 …
    So we can not update woodmart theme to 1.10.2 as you said it’s only compatible with 3.3
    but can you please help us to solve some of the fixed issues in woodmart 1.10.1?

    1. “top bar in mobile issue”
    is it only a css problem? if yes then ok no problem! i can solve it by myself…

    2. “product category in page title”
    which file we must edit for this one?

    3. “import error”
    is it about dummy content? if yes then no problem! we dont use that …

    4. “php warning”
    is it about woocommerce 3.3 and php 7.2? if yes then no problem! we dont use that …

    Thank you so much.

    #40642

    Artem Temos
    Keymaster

    Hello,

    1. Yes, it is a CSS problem.

    2. Check the function woodmart_product_categories_nav() in the file woodmart/inc/woocommerce.php. You can copy the new function from the latest version and replace your old one in your current theme files.

    3. You will not face this issue.

    4. Yes, it is about PHP 7.2 and WC 3.3.

    Regards

    #40645

    wanila
    Participant

    Thank you so much.

    2. can you please send me the new function? i have no access on themeforest right now

    #40696

    Artem Temos
    Keymaster

    Here you go

    	function woodmart_product_categories_nav() {
    		global $wp_query, $post;
    
    		$show_subcategories = woodmart_get_opt( 'shop_categories_ancestors' );
    		$show_categories_neighbors = woodmart_get_opt( 'show_categories_neighbors' );
    
    		$list_args = array(  
    			'taxonomy' => 'product_cat', 
    			'hide_empty' => false 
    		);
    
    		// Menu Order
    		$list_args['menu_order'] = false;
    		$list_args['menu_order'] = 'asc';
    
    		// Setup Current Category
    		$current_cat   = false;
    		$cat_ancestors = array();
    
    		if ( is_tax( 'product_cat' ) ) {
    
    			$current_cat   = $wp_query->queried_object;
    			$cat_ancestors = get_ancestors( $current_cat->term_id, 'product_cat' );
    
    		}
    
    		$list_args['depth']            = 5;
    		$list_args['child_of']         = 0;
    		$list_args['title_li']         = '';
    		$list_args['hierarchical']     = 1;
    		$list_args['show_count']       = woodmart_get_opt( 'shop_products_count' );
    		$list_args['walker'] = new WOODMART_Walker_Category();
    
    		$class = ( woodmart_get_opt( 'shop_products_count' ) ) ? 'has-product-count' : 'hasno-product-count';
    
    		$shop_link = get_post_type_archive_link( 'product' );
    
    		include_once( WC()->plugin_path() . '/includes/walkers/class-product-cat-list-walker.php' );
    		
    		if( is_object( $current_cat ) && !get_term_children( $current_cat->term_id, 'product_cat' ) && $show_subcategories && !$show_categories_neighbors ) return;
    		
    		echo '<div class="woodmart-show-categories"><a href="#">' . esc_html__('Categories', 'woodmart') . '</a></div>';
    
    		echo '<ul class="woodmart-product-categories ' . esc_attr( $class ). '">';
    		
    		echo '<li class="cat-link shop-all-link"><div class="category-nav-link"><a href="' . esc_url( $shop_link ) . '">
    				<span class="category-summary">
    					<span class="category-name">' . esc_html__('All', 'woodmart') . '</span>
    					<span class="category-products-count">
    						<span class="cat-count-label">' . esc_html__('products', 'woodmart') . '</span>
    					</span>
    				</span>
    		</a></div></li>';
    
    		if( $show_subcategories ) {
    			woodmart_show_category_ancestors();
    		} else {
    			wp_list_categories( $list_args );
    		}
    
    		echo '</ul>';
    	}
Viewing 4 posts - 1 through 4 (of 4 total)