Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mollie Checkout URL as a variable for Email Templates #275

Open
SeanMerger opened this issue Jan 25, 2022 · 4 comments
Open

Mollie Checkout URL as a variable for Email Templates #275

SeanMerger opened this issue Jan 25, 2022 · 4 comments
Labels
Feature Request New feature or request Payments API Tickets related to refactor

Comments

@SeanMerger
Copy link

SeanMerger commented Jan 25, 2022

It would be real nice to have the mollie checkout url for a customer as a variable for email templates. The regular Shopware routine for failed payments is not the best one in terms of conversion and we've received better results by directly sending customers the mollie checkout url.

@boxblinkracer
Copy link
Collaborator

Hi @SeanMerger
that is indeed a nice idea, thank you so much

I'll discuss it with Mollie and then we see if we can make it :)

@boxblinkracer boxblinkracer added the Feature Request New feature or request label Jan 25, 2022
@BlackScorp
Copy link
Collaborator

@SeanMerger sadly this is currently not possible. The variables which are used in E-Mail templates are generated from the last Order.

Which means if we add new variables, they will be overwritten when a new order is placed. I tried to add the needed variables to the template but when i create an order without mollie payment, the variables were gone.

In Order to do this shopware need to create an interface wehere we can append custom variables to existing mail templates. For now there is no official way to do so.

@SeanMerger
Copy link
Author

@BlackScorp thanks for the feedback. The only workaround I could imagine would be service in the plugin that generates the payment link based on the order id. E.g. shop.url/api/_action/mollie/config/paymentlink?order={{ order.orderNumber }} but not entirely sure if that would work in shopware, plus not a clean solution.

@BlackScorp
Copy link
Collaborator

@SeanMerger currently you have even access to the variables. if your last order was made via mollie, you have access to order.customFields.molliePayments and there you have all variables.

how ever if you add the variable to your mail template and an order is made without mollie, the email will not be sent, since there will be an error with missing variables.

Best solution would be if shopware would provide some kind of interface or event where we could inject custom objects

@BlackScorp BlackScorp added the Payments API Tickets related to refactor label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request Payments API Tickets related to refactor
Projects
None yet
Development

No branches or pull requests

3 participants