Ajax-фильтры в теме Easysale
js/easysale.shop.js
// On change that.$form.find('.s-filter-item input').on("change", function(event) { //event.preventDefault(); if (!that.is_locked) { that.onChange( that.$form ); } //return false; });
category.filters.html
{$_collapsed = !empty($filter.collapsed) and !empty($filter.code) and !$wa->get($filter.code)} <h5 class="s-filter-header{if $_collapsed} collapsed{/if}" data-toggle="collapse" data-target="#fid{$fid}" aria-expanded="{if $_collapsed}false{else}true{/if}"><i class="fa fa-lg fa-angle-up"></i> {$filter.name|escape}{if !empty($filter.unit)}, {$filter.unit.title}{if $filter.unit.value != $filter.base_unit.value}<input type="hidden" name="{$filter.code}[unit]" value="{$filter.unit.value}">{/if}{/if}</h5> <div class="s-filter-wrapper collapse{if !$_collapsed} in{/if}" id="fid{$fid}">
0 comments