Jump to content

Не выводится фильтры, в чем может быть проблема?


Recommended Posts

В каталоге выводится фильтр только по брендам, хотя в Sidebar.tpl прописаны по свойствам, где копать, что это может быть подскажите?

{* Фильтр по брендам *}
{if $category->brands}                                                                        
        <dt>Бренды
        </dt>                    
        <dd>
          <ol>    
            <li>                
            <a href="catalog/{$category->url}" {if !$brand->id}class="selected"{/if}>Все бренды</a>             
            </li>
    {foreach name=brands item=b from=$category->brands}
        <li> 
        <a data-brand="{$b->id}" href="catalog/{$category->url}/{$b->url}" {if $b->id == $brand->id}class="selected"{/if}>{$b->name|escape}</a>
        </li> 
    {/foreach}                
          </ol>
        </dd>
 {/if}
 
 {* Фильтр по свойствам *}
{if $features}
    {foreach $features as $f}                                                                               
        <dt data-feature="{$f->id}">{$f->name}
        </dt>                    
        <dd>
          <ol>              
            <li>                
            <a href="{url params=[$f->id=>null, page=>null]}" {if !$smarty.get.$f@key}class="selected"{/if}>Все</a>             
            </li>
        {foreach $f->options as $o}
                <li>
                <a href="{url params=[$f->id=>$o->value, page=>null]}" {if $smarty.get.$f@key == $o->value}class="selected"{/if}>{$o->value|escape}</a>
                </li>
        {/foreach}                
          </ol>
        </dd>
    {/foreach}        
{/if}         
                                               
      </dl>            
<script type="text/javascript">decorateDataList('narrow-by-list')</script>                    
    </div>    
  </div>
</div>
{/if}

post-20380-0-32432900-1458472366_thumb.png

Link to post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...