D
D
drewandrew2020-07-14 09:32:19
1C-Bitrix
drewandrew, 2020-07-14 09:32:19

How to send the product name in Bitrix to the email form template?

How to pass the name of the product on the page of which the form is located to the mail template? Am I using a "web form" component that is called in template.php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2020-07-14
@babarun

1. Component with "Web form filling" form.result.newis placed in component_epilog.phpthe product detail card component
2. Product ID is passed to the component settings form.result.new
3. In the web form settings, enter a hidden field for the product ID
4. In the component template , output the product ID form.result.newin the hidden field from step 3 from item 2.
Now, when filling out the web form, the product IDs will be saved in its results. It remains to add a handler for sending a mail event that will take the product ID and replace it or add the name of the product.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question