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>
- The topic ‘Make Variation Filters optional’ is closed to new replies.