Ecshop Home Call category under the product is actually very simple, there are template settings there can be set up, but that can only be used cat_goods.lib, inconvenient, so I want to see how can be simple implementation of Ecshop home call category under the product
Only need to write in index.php such a sentence: Assign_cat_goods (20,10);
Where 20 is the number of categories id,10 is called
Assign_cat_goods This function is inside the includes/lib_goods.php.
And then there's the Ecshop template that calls the product.
<!–{foreach from= $cat _goods_20 item=goods}–>
<divclass= "Cat_box" >
<div class= "img" ><ahref= "{$goods. URL}" target= "_blank" ></a></div>
<div class= "name" ><ahref= "{$goods. URL}" target= "_blank" >{$goods. Short_name|escape:html|truncate:10} </a><br/>
<span class= "Fontr fontbfontbig" >{$goods .shop_price}</span></div>
</div>
<!–{/foreach}–>
The variable called by Ecshop is $cat_goods_20, where 20 is the category ID
Ecshop Home Call item under a category |assign_cat_goods ()