I want to create view which contain status "new" or "promo". For example loop for new status
{loop type="product" name="product_list" limit=$limit promo="yes" page=$product_page order=$product_order}
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasShortDescription=true hasQuickView=false width="262" height="218"}
{/loop}
now i have same loop but different status "new". I don't want to create if statement for loop. I want to pass status name into loop something like this:
{loop type="product" name="product_list" limit=$limit {$status}="yes" page=$product_page order=$product_order}
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasShortDescription=true hasQuickView=false width="262" height="218"}
{/loop}
I have changed promo into
where
but it didn't work. Is it possible to do such a thing ?