2016-08-16 4 views

Antwort

2

Verwendung:

{if $packItems|@count > 0} 

ein Beispiel, das Sie verwenden können sie in product.tpl im Themenordner finden. auf diese Weise verwendet:

{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

zusätzlich gibt in einem Artikel ist Objekt:

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

für Nicht-Pack Produkte

Verwandte Themen