Answer the question
In order to leave comments, you need to log in
How to get order properties?
How to display order properties by its ID?
I need to display product property values from the "Properties" tab
Answer the question
In order to leave comments, you need to log in
\Bitrix\Main\Loader::includeModule('sale');
$orderId = 10;
$order = \Bitrix\Sale\Order::load($orderId);
if(!empty($order)) {
$basket = $order->getBasket();
foreach($basket->getBasketItems() as $basketItem) {
$basketPropertyCollection = $basketItem->getPropertyCollection();
print_r($basketPropertyCollection->getPropertyValues());
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question