Instead of {foreach} you can use {if} condition along with in_array method like that:
{assign var=items value=","|explode:$listing_data.YOUR_FIELD_KEY}
{if...
Type: Posts; User: Rudi
Instead of {foreach} you can use {if} condition along with in_array method like that:
{assign var=items value=","|explode:$listing_data.YOUR_FIELD_KEY}
{if...
Hello,
The same way,
but instead of using:
{if $item == 1}
... your code ...
The checkbox values are combined in one string with a comma like '1,2,3,5'
you should divide them by comma assigning to a new value:
{assign var=items...
Hello Blackred,
- On what page you need to use this code and where in the script you insert it?
- What is the type of field 'immo_equipements_du_bien'?