F
F
f7_at0m2020-06-01 12:02:37
1C-Bitrix
f7_at0m, 2020-06-01 12:02:37

How to set a condition for the availability of goods in Bitrix?

Hello, I have a question about Bitrix. How and where can I put down my own condition for displaying the message "Out of stock"? And where is the default condition? That is, for example, if there are less than 10 products, "Out of stock" is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zekin375, 2020-06-01
@zekin375

$quantity= $arElement[CATALOG_QUANTITY];
Then just the conditions
if($quantity!=0 && $quantity<=10)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question