Support » Plugin: Woo Variations Table » Make Variation Filters optional

  • This plugin does almost exactly what I need – thank you.

    However, my variation tables are small, and the variation filters just above the table are not needed or useful in the site I’m building. It would be good if there was a configuration option to disable them. I removed this code from woo-variations-table.php and they disappeared, but I’d rather the functionality to hide them be part of the plugin if possible:

    <div class=”variation-filters”>
    <div class=”filters form-inline”>
    <div class=”filter”>
    <input placeholder=”Keywords” name=”query” v-model=”searchQuery” class=”form-control”>
    </div>
    <div v-for=”(attribute, key, index) in attributes” class=”filter”>
    <label>{{ attribute.name }} </label>
    <select v-model=”activeFilters[index]” @change=”setFilters()” class=”form-control”>
    <option value=””><?php echo __(‘Any’, ‘woo-variations-table’); ?></option>
    <option v-for=”option in attribute.options” :value=”‘attribute_’+key+’:’+option.slug”>{{ option.name }}</option>
    </select>
    </div>
    </div>
    </div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you show what code you removed from the woo-variations-table.php? I need to do this as well.

    Regards,

    ajp1126

    I commented out the code included in my original post – it starts around line 309. That hid the filters but left the table intact.

    My issue is that when the page first loads, the table is hidden and ONLY the Available Options filter is visible. I’d like the table to be visible, but I am having trouble figuring out how to make it always show. As soon as I enter anything in the “keywords” box, the table appears. Otherwise, all visitors see is the Available Options and the 2 search fields….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make Variation Filters optional’ is closed to new replies.