Closed robzor closed 1 year ago
In the documentation: https://craftcms.com/docs/commerce/4.x/emails.html#html-email-template-path
If you try to use {% set globalSetName = craft.globals.getSetByHandle('globalSetName') %} you will get a Twig error and it appears that in Commerce 4, global variables are available in Email templates without having to fetch them.
{% set globalSetName = craft.globals.getSetByHandle('globalSetName') %}
4.2.7
4.1.3
No response
-
I can confirm there is an issue on the Craft Commerce docs.
Thanks for pointing this out—will have a patch out soon. ❤️
What happened?
Description
In the documentation: https://craftcms.com/docs/commerce/4.x/emails.html#html-email-template-path
If you try to use
{% set globalSetName = craft.globals.getSetByHandle('globalSetName') %}
you will get a Twig error and it appears that in Commerce 4, global variables are available in Email templates without having to fetch them.Craft CMS version
4.2.7
Craft Commerce version
4.1.3
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-