Tell me please. After placing the order in the mail comes a letter that made the order. It has a name, price, and quantity of a product or goods. This is done using the mail template — in the template itself, the field is called # ORDER_LIST # . Is it possible here to somehow connect the product image, equipment - what the buyer chose during the checkout process? if so how?

    1 answer 1

    You need to determine the event that sends the desired mail template and send it additional available fields (macros). More precisely, when sending an event via CEvent::Send() expand the $arEventFields array with the additional fields you need. To do this, create in /bitrix/php_interface/init.php handler of the event you need, get the necessary data inside the handler, which should be output by an additional field and place in $arEventFields . And pull the necessary data through the methods of the Bitrix modules.