2014-04-12 156 views
1

我在產品頁面上有面包屑導致的問題,它沒有顯示產品的真實路徑。Prestashop麪包屑 - 產品頁面上顯示的路徑錯誤

以下是我把它放在後臺:

enter image description here

下面是它如何顯示它:

enter image description here

我breadcrumb.tpl文件:

<!-- Breadcrumb --> 
{if $page_name != index} 
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} 

<div id="breadcrumb"> 
    <ul class="breadcrumb"> 
     {if $page_name!='product'} 
      <li> 
      <a href="{$base_dir}" title="{l s='return to Home'}">{l s='Home'} {$navigationPipe|escape:html:'UTF-8'} {l s='Shop'}</a> 
      {if isset($path) AND $path} 
       {if $page_name!='product'} 
        <span class="divider" {if isset($category) && $category->id_category == 1}style="display:none;"{/if}> 
         {$navigationPipe|escape:html:'UTF-8'} 
        </span> 
       {/if} 
      {/if} 
      </li> 
     {/if} 
     {if isset($path) AND $path} 
      {if !$path|strpos:'span'} 
       <li>{$path}</li> 
      {else} 
       <li class="active">{$path}</li> 
      {/if} 
     {/if} 
    </ul> 
</div> 
{/if} 
<!-- /Breadcrumb --> 

我到處搜索過網絡解決我的問題,我找不到任何有用的東西。 請幫我這個。任何建議是有幫助的。

謝謝!

回答

2

從數據庫中查看ps_category表,查看是否有多個父類聲明用於所有類別。 我在過去有過這個問題,清理表中無用的行解決了我的問題。

相關問題