Answer the question
In order to leave comments, you need to log in
How to add an item quantity change event from a property?
Previously, there was the following event, when the total value was substituted when adding a product.
AddEventHandler("sale", "OnProductAdd", "OnProductAdd");
function OnProductAdd(&$ID,$Fields)
{
$res=Array("QUANTITY"=>"500");
CCatalogProduct::Update($ID,$res);
}
<?=$arResult["DISPLAY_PROPERTIES"]["kol"]["VALUE"]?>
Answer the question
In order to leave comments, you need to log in
Get the section ID and property value using the CIBlockElement::GetList method
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question