2016-08-16 1 views

답변

2

사용 :

{if $packItems|@count > 0} 

테마 폴더에 product.tpl에서 찾을 수 있습니다을 사용하는 예. 이 방식으로 사용 :

추가
{if $packItems|@count > 0} 
      <div class="short_description_pack"> 
      <h3>{l s='Pack content'}</h3> 
        {foreach from=$packItems item=packItem} 

        <div class="pack_content"> 
          {$packItem.pack_quantity} x <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)|escape:'html':'UTF-8'}">{$packItem.name|escape:'html':'UTF-8'}</a> 
          <p>{$packItem.description_short}</p> 
        </div> 
        {/foreach} 
      </div> 
    {/if} 
-1

하는 제품이 오브젝트 : 비 팩 제품

$product->id_pack_product_attribute = null 
$product->cache_is_pack = 0 

관련 문제