Add error message if the category haven't got products
This commit is contained in:
@@ -18,17 +18,24 @@
|
|||||||
{$product_page={$smarty.get.page|default:1}}
|
{$product_page={$smarty.get.page|default:1}}
|
||||||
{$product_order={$smarty.get.order|default:'alpha'}}
|
{$product_order={$smarty.get.order|default:'alpha'}}
|
||||||
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main">
|
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main">
|
||||||
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order}
|
{ifloop rel="product_list"}
|
||||||
<div id="category-products">
|
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order}
|
||||||
<div class="products-content">
|
<div id="category-products">
|
||||||
<ul class="product-col-4">
|
<div class="products-content">
|
||||||
{loop type="product" name="product_list" category={category attr="id"} limit=$limit page=$product_page order=$product_order}
|
<ul class="product-col-4">
|
||||||
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="218" height="146"}
|
{loop type="product" name="product_list" category={category attr="id"} limit=$limit page=$product_page order=$product_order}
|
||||||
{/loop}
|
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="218" height="146"}
|
||||||
</ul>
|
{/loop}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div><!-- /#category-products -->
|
||||||
|
{include file="includes/toolbar.html" toolbar="bottom"}
|
||||||
|
{/ifloop}
|
||||||
|
{elseloop rel="product_list"}
|
||||||
|
<div class="address-warning">
|
||||||
|
No products
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /#category-products -->
|
{/elseloop}
|
||||||
{include file="includes/toolbar.html" toolbar="bottom"}
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<aside class="col-left" role="complementary" itemscope itemtype="http://schema.org/WPSideBar">
|
<aside class="col-left" role="complementary" itemscope itemtype="http://schema.org/WPSideBar">
|
||||||
|
|||||||
Reference in New Issue
Block a user