A
A
ak_wi2018-11-16 13:15:43
MODX
ak_wi, 2018-11-16 13:15:43

How to properly write if condition in modx template?

The product template has the field
How to display the product in the template by the IF condition so that if this field >=1 , then it would write in stock, and in any other case "under the order"?
Tried options:


do not work correctly

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Lunegov, 2018-11-16
@ak_wi

под заказ

Instruction in Russian on conditional output modifiers .

S
Sanes, 2018-11-16
@Sanes

Through default, you can check for an empty field.
In general, everything is in the documentation https://docs.modx.pro/sistema/osnovyi/filtryi-vvod...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question