Email file names refactor

This commit is contained in:
Bartłomiej Sęk 2024-07-01 12:00:10 +02:00
parent 578822388e
commit 1f1870ca2f
7 changed files with 11 additions and 11 deletions

View file

@ -40,7 +40,7 @@ The routing for contact can be found in the ``Sylius/Bundle/ShopBundle/Resources
By overriding that routing you will be able to customize **redirect url, error flash, success flash, form and its template**.
You can also change the template of the email that is being sent by simply overriding it
in your project in the ``templates/bundles/SyliusShopBundle/Email/contactRequest.html.twig`` file.
in your project in the ``templates/bundles/SyliusShopBundle/Email/contact_request.html.twig`` file.
Learn more
----------

View file

@ -15,7 +15,7 @@ Every time a customer registers via the registration form, a user registration e
**Code**: ``user_registration``
**The default template**: ``@SyliusShop/Email/userRegistration.html.twig``
**The default template**: ``@SyliusShop/Email/user_registration.html.twig``
You also have the following parameters available:
@ -45,7 +45,7 @@ This e-mail is used when the user requests to reset their password in the login
**Code**: ``reset_password_token``
**The default template**: ``@SyliusShop/Email/passwordReset.html.twig``
**The default template**: ``@SyliusShop/Email/password_reset.html.twig``
You also have the following parameters available:
@ -60,7 +60,7 @@ This e-mail is sent when order is placed.
**Code**: ``order_confirmation``
**The default template**: ``@SyliusShop/Email/orderConfirmation.html.twig``
**The default template**: ``@SyliusShop/Email/order_confirmation.html.twig``
You also have the following parameters available:
@ -91,7 +91,7 @@ This e-mail is sent when a customer validates contact form.
**Code**: ``contact_request``
**The default template**: ``@SyliusShop/Email/contactRequest.html.twig``
**The default template**: ``@SyliusShop/Email/contact_request.html.twig``
You have the following parameters available:

View file

@ -5,22 +5,22 @@ sylius_mailer:
emails:
contact_request:
subject: sylius.emails.contact_request.subject
template: "@SyliusShop/Email/contactRequest.html.twig"
template: "@SyliusShop/Email/contact_request.html.twig"
order_confirmation:
subject: sylius.emails.order_confirmation.subject
template: "@SyliusShop/Email/orderConfirmation.html.twig"
template: "@SyliusShop/Email/order_confirmation.html.twig"
user_registration:
subject: sylius.emails.user_registration.subject
template: "@SyliusShop/Email/userRegistration.html.twig"
template: "@SyliusShop/Email/user_registration.html.twig"
password_reset:
subject: sylius.emails.user.password_reset.subject
template: "@SyliusShop/Email/passwordReset.html.twig"
template: "@SyliusShop/Email/password_reset.html.twig"
reset_password_token:
subject: sylius.emails.user.password_reset.subject
template: "@SyliusShop/Email/passwordReset.html.twig"
template: "@SyliusShop/Email/password_reset.html.twig"
reset_password_pin:
subject: sylius.emails.user.password_reset.subject
template: "@SyliusShop/Email/passwordReset.html.twig"
template: "@SyliusShop/Email/password_reset.html.twig"
verification_token:
subject: sylius.emails.user.verification_token.subject
template: "@SyliusShop/Email/verification.html.twig"