2017-04-20 26 views
0

我試圖按品牌將商店添加到Bigcommerce主題中。我已經通過模板文件,似乎無法確定我需要做什麼。我找到了「shop-by-price.html」模板頁面,我想我可以在它上面粘貼一些代碼,但似乎無法找到品牌列表代碼。這裏是shop-by-price.html頁面在Bigcommerce模板主題中添加側欄「Shop by Brands」

{{#if shop_by_price}} 
    <div class="sidebar-block shop-by-price facet-list" data-facet-filter> 
    {{> components/common/facet-toggle title=(lang 'category.shop_by_price')}} 
    <ul class="facet-list-items is-open" data-facet-filter-wrapper> 
     {{#each shop_by_price}} 
     <li class="facet-item"> 
      <a class="{{#if selected }}is-active{{/if}}" href="{{url}}" alt="{{low.formatted}} - {{high.formatted}}">{{low.formatted}} - {{high.formatted}}</a> 
     </li> 
     {{/each}} 
    </ul> 
    {{#any shop_by_price selected=true}} 
     <a href="{{category_url}}" class="link facet-remove"> 
     {{lang 'category.reset'}} 
     </a> 
    {{/any}} 
    </div> 
{{/if}} 

非常感謝您的幫助。謝謝!

+0

檢查後截圖:http://prntscr.com/ez0t23 –

+0

是那個屏幕截圖的反映,代碼是什麼? – Damien

+0

你現在可以檢查網站。 –

回答

0

,如果我沒看錯的,所以你要顯示在類別欄頁品牌排行榜,請打開從管理端你的模板主題編輯器,然後 模板 - >組件 - >類別 - > sidebar.html打開文件sidebar.html並粘貼下面的代碼

<nav> 
    {{#if category.subcategories}} 
    <div class="sidebarBlock"> 
     <h5 class="sidebarBlock-heading">{{category.name}}</h5> 
     <ul class="navList"> 
      {{#each category.subcategories}} 
      <li class="navList-item"> 
       <a class="navList-action" href="{{url}}" alt="{{name}}" title="{{name}}">{{name}}</a> 
      </li> 
      {{/each}} 
     </ul> 
    </div> 
    {{/if}} 
{{#if shop_by_brand}} 
     <div class="sidebarBlock"> 
      <h5 class="sidebarBlock-heading">{{lang 'brand.label'}}</h5> 
      <ul class="navList"> 
       {{#each shop_by_brand}} 
        <li class="navList-item"> 
         <a class="navList-action" href="{{url}}">{{name}}</a> 
        </li> 
       {{/each}} 
       <li class="navList-item"> 
        <a class="navList-action" href="{{urls.brands}}">{{lang 'common.view_all'}}</a> 
       </li> 
      </ul> 
     </div> 
     {{/if}} 
    {{#if category.faceted_search_enabled}} 
     {{> components/faceted-search/index category}} 
    {{else}} 
     {{> components/category/shop-by-price shop_by_price=category.shop_by_price category_url=category.url}} 
    {{/if}} 

</nav> 

擊中保存並應用按鈕,它看起來像這樣 http://deepak-diwan-s-store.mybigcommerce.com/ala-carte-by-the-lb/

+0

您發給我的網站沒有側欄,只是一頁上有一堆物品 – Damien

+0

對不起,我做了一些更改,請現在檢查它。 –

相關問題