Answer the question
In order to leave comments, you need to log in
Adding a product property value to the shopping cart for printing Bitrix?
Hello. There is a template for printing an order. There is an article insertion line in it, I decided to replace it with one of the custom properties of the product: (ARTICLE was replaced with DEVICE_TYPE)
$db_props = CIBlockElement::GetProperty($ar_res["IBLOCK_ID"],$ar_res["ID"],array(),array("CODE"=>"DEVICE_TYPE"));
if($ar_props = $db_props->Fetch())
$arBasketTmp["DEVICE_TYPE"]=$ar_props["VALUE"];
Answer the question
In order to leave comments, you need to log in
He asked himself answered) if it is useful for someone, instead of VALUE in the code, put VALUE_ENUM (the DEVICE_TYPE property was a list)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question