• Resolved nanomania

    (@nanomania)


    Hello can you help me I need help with the filters of my store, I need to be at the beginning all the hidden attributes, with this I mean that only the category tab that I have should appear at the beginning and once the category has been selected then if its attributes appear, Now once you enter the store appears the filters panel the categories tab and 20 tabs of all the attributes and do not want to be displayed from the beginning. a greeting!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello

    The plugin does not have this function.

    You can hide all attributes by CSS – http://www.woocommerce-filter.com/manipulate-css-when-search-going/

    Example:
    .woof_container_pa_color{
    display:none;
    }
    .woof_search_is_going .woof_container_pa_color{
    display:block;
    }

    Thread Starter nanomania

    (@nanomania)

    Hello, that does not help me, it always hides the attributes and I just need to hide them in the main filter since I have a tab that are the categories of the store with the type of different products for example:

    1- Type of products: 3d models, textures, audio, courses, video games,

    Now if I have 3000 attributes I appear all and I just want them to appear once the type of product is selected, that is done but nothing more to open the page appear all the attributes and is not what I want.

    Thread Starter nanomania

    (@nanomania)

    That’s how I look now…

    imagen 1

    And I want it to look like this, example image 2

    imagen 2

    And once you select its category then if its attribute appears

    imagen 3

    • This reply was modified 9 years, 6 months ago by nanomania.
    • This reply was modified 9 years, 6 months ago by nanomania.
    Thread Starter nanomania

    (@nanomania)

    Sorry for the bad translation

    • This reply was modified 9 years, 6 months ago by nanomania.
    Thread Starter nanomania

    (@nanomania)

    That’s how I look now…

    imagen 1

    And I want it to look like this, example image 2

    imagen 2

    And once you select its category then if its attribute appears

    imagen 3

    This is the images, I did not know how to upload them here.

    Hello

    The plugin does not have this function.

    But you can (if you have experiences in PHP ) customize code. Example:
    In file functions.php

    add_action('wp_head', 'your_function'); 
    
    function your_function(){
    	if($_GET['product_cat']=='category_slug'){
    		?>
    		<style>
    		.woof_search_is_going .woof_container_pa_color{
    display:block;
    }
    		</style>
    		<?php
    	}
    }

    OR use this hook (for get current request) – http://www.woocommerce-filter.com/manipulate-search-data-options/

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘hide attributes’ is closed to new replies.