Answer the question
In order to leave comments, you need to log in
How to display a property from an order by its ID. After the user has placed an order?
Hello.
Help inferring a property from an order by its ID. After the user has formed an order, I need to get the value of the "VALUE_NAME" field. And how to find out if a product in the composition of the product has changed the price. Code examples if possible.
Thanks in advance.
This is how my property is displayed on the cart page, but I don’t know how to get it by order number:
<?
if(isset($arItem["PROPERTY_TSVET_VALUE"])) {
foreach ($arItem["PROPS"] as $val):
if (is_array($arItem["SKU_DATA"]))
{
$bSkip = false;
foreach ($arItem["SKU_DATA"] as $propId => $arProp)
{
if ($arProp["CODE"] == $val["CODE"])
{
$bSkip = true;
break;
}
}
if ($bSkip)
continue;
}
echo "<br>".$val["NAME"].": <span>".$val["VALUE"]."<span><br/>";
endforeach;
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question