Answer the question
In order to leave comments, you need to log in
How to display the unit of measurement of a product in Bitrix?
Greetings, I'm just starting to learn Bitrix, I ran into a problem.
In the product catalog, the unit of measure of the product is displayed statically through the template:
<span class="product-item-price product-item-price-right">
за шт.<br>
<b><?=$arItem["PRICES"]["розничная"]["VALUE"]?> Р</b>
</span>
Answer the question
In order to leave comments, you need to log in
I am not a deep connoisseur of Bitrix, but I would do it like this:
<span class="product-item-price product-item-price-right">
за шт.<br>
<?$defaultMeasure = \CCatalogMeasure::getDefaultMeasure(true, true);?>
<b><?=$arItem["PRICES"]["розничная"]["VALUE"]?> <?=$defaultMeasure['SYMBOL_RUS']?></b>
</span>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question