THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


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

$status

where

$status="promo"

but it didn't work. Is it possible to do such a thing ?