0
有没有简单的方法从数据库中检索“产品包”?我想在不同的类别中显示所有产品包组合。如何从Prestashop的数据库中获取特定产品
如果我可以禁用这个包出现在其他类别中,那将会很棒。如果它变得太复杂,我没有问题。
由于我使用自定义模板,因此我提供了一个关于如何在Prestashop 1.6.1.4中显示产品的代码示例。
<div class ='cate_title'>
{foreach from=$productCates item=productCate name=posTabCategory}
<div id="tabtitle_{$productCate.id}" class="tab_title">
<h2>
<span>{$productCate.name}</span>
</h2>
</div>
{/foreach}
</div>
<ul class="tab_cates">
{$count=0}
{foreach from=$productCates item=productCate name=posTabCategory}
<li data-title="tabtitle_{$productCate.id}" rel="tab_{$productCate.id}" {if $count==0} class="active" {/if} > {$productCate.name}</li>
{$count= $count+1}
{/foreach}
</ul>
</div>
<div class="tab1_container">
{foreach from=$productCates item=productCate name=posTabCategory}
<div id="tab_{$productCate.id}" class="tab_category">
<div class="row">
<div class="productTabCategorySlider1">
{foreach from=$productCate.product item=product name=posTabCategory}
<div class="cate_item">
<div class="item-inner">
<a class ="bigpic_{$product.id_product}_tabcategory product_image" href="{$product.link|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}"><img class="img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{$product.name|escape:html:'UTF-8'}" />
..............................
...............................