D
D
Daulet2020-10-20 18:29:41
1C-Bitrix
Daulet, 2020-10-20 18:29:41

How to display the number of goods in stock in Bitrix?

How to display the quantity of goods in stock?
<?php $arResult[CATALOG_QUANTITY];?>
This code works on one site, but not on another. Though at both parameters are registered.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-10-21
@anton99zel

phpneguru , if somewhere, then

<? $ar_res = CCatalogProduct::GetByID($arResult[ID]); 
echo "<br>На складе: "; 
print_r($ar_res['QUANTITY']); 
echo " шт."; ?>

And if the complex component is Catalog, then set USE_STORE to Y, you will find this in page editing mode at the root of your catalog, for example /catalog/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question