Answer the question
In order to leave comments, you need to log in
How can I find out which mail template is used in the code in Bitrix? Is there any way to quickly find a piece of code on a website using a template?
How can I quickly find a section of code on a site that uses data from a particular email template?
Answer the question
In order to leave comments, you need to log in
Maybe I misunderstood something. But mail templates usually use components and you just specify which template to use in the component settings. And the mail template code itself is written in the admin panel, in the settings, in the Mail templates section.
Mail templates are very rarely used in the code. Most often, mail events are called. The advantage is that when the mail template is specified, the event is also specified. So if you need to find a specific template where it is used, just:
find . -name "*.php" -not -name "*cache*" | xargs grep "КОД_ПОЧТОВОГО_СОБЫТИЯ"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question