Skip Navigation

[Resolved] Conditional

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by avansisI-2 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1869085

Question about conditionals

#1869141

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Avansis,

You can respond here.

#1869189

Hi Shane,

I try it but doesnt work

<td>[types field='nombre_campana' separator=', ' item='@campana-bonos-bono.parent'][/types]</td>
<td>[types field="referencia-del-bono"][/types]</td>
<td>[types field="fecha-de-creacion-del-bono"][/types]</td>
<td>[wpv-post-taxonomy type="estado"]</td>
<td>
[wpv-conditional if="( $(wpcf-comprobante) eq '' )"]
[cred_form form="adjunto-bonos"]
[/wpv-conditional]
[wpv-conditional if="( $(wpcf-comprobante) ne '' )"]
[types field='comprobante'][/types]
[/wpv-conditional]</td>
<td>[wpv-view name="child-view"]<td>
 <td> [types field="fecha-de-caducidad"][/types]<br>[wpv-conditional if = "($ (wpcf-fecha-de-caducidad) lt 'TODAY ()')"] <b>CADUCADO</b> [/wpv-conditional]</td>

You can see in /listado-bonos-administrador/

Thanks

#1869341

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Avansis,

The issue should now be resolved.

The problem was that there was a table tag that needed to be closed.

I went ahead and closed the tag and the table should now be displaying properly.

Thanks,
Shane

#1869353

Thanks Shane,

But they dont show that it's expired, in the post that 'fecha de caducidad' is 'fecha de caducidad' date is before today.

#1869411

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Avansis,

Please check now.

Thanks,
Shane

#1869477

My issue is resolved now. Thank you!