Answer the question
In order to leave comments, you need to log in
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. Component with "Web form filling" form.result.new
is placed in component_epilog.php
the 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.new
in 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 questionAsk a Question
731 491 924 answers to any question