나는 테마 (전면) product.tpl 파일 (PS 1.6.1.4)를 체크 할 경우 상태 제품은 표준 제품 또는 기존 제품의 팩 작동하지Prestashop 1.6. .tpl에서 제품 isPack을 확인하는 방법?
{if $product_type == Product::PTYPE_PACK}
경우 ....
돌아가고 싶습니다. 부울.
나는 테마 (전면) product.tpl 파일 (PS 1.6.1.4)를 체크 할 경우 상태 제품은 표준 제품 또는 기존 제품의 팩 작동하지Prestashop 1.6. .tpl에서 제품 isPack을 확인하는 방법?
{if $product_type == Product::PTYPE_PACK}
경우 ....
돌아가고 싶습니다. 부울.
사용 :
{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}
하는 제품이 오브젝트 : 비 팩 제품
$product->id_pack_product_attribute = null
$product->cache_is_pack = 0