Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
Offline Reto Cossalter  
#1 Posted : Monday, September 9, 2019 4:42:17 AM(UTC)
Reto Cossalter

Rank: Advanced Member

Reputation:

Groups: HCC-Partner, Registered, Registered Users, Subscribers
Joined: 6/9/2017(UTC)
Posts: 47

Thanks: 24 times
Was thanked: 24 time(s) in 21 post(s)
Hi
Would there be interest in having different Email-Templates for the payment providers?
Eg: If you pay via PayPal you can send out the current Order Mail. But if someone pays via Invoice (or Cash) then we could send out a different Email, containing information how to buy.

I'm currently looking into the code that loads the template (EmailOrder.cs) and there are only two templates available: "Admin" and "Customer"
I'm thinking about to add some (optional) suffix by paymenttype like "Customer:PayPal", and change the template lookup to "template:suffix" --> "template" --> "default"

If we will implement something like this we want to build something to add to hotcakes as a standard. Thoughts about this change? Better ideas?

Regards
Reto
Offline Will Strohl  
#2 Posted : Tuesday, September 10, 2019 12:11:29 PM(UTC)
Will Strohl

Rank: Administration

Reputation:

Groups: Administrators, HCC-Employee-Store-Manager, HCC-Employee-Support, HCC-Partner, Moderators, Partners, Registered, Registered Users, Subscribers
Joined: 12/22/2016(UTC)
Posts: 341

Thanks: 77 times
Was thanked: 59 time(s) in 57 post(s)
That's definitely an interesting idea. I think instead of a completely different template, it may be a better approach to have different payment tokens that could inject payment-specific details into those other order/receipt e-mail templates. What do you think?
Will Strohl, Upendo Ventures
Hotcakes Cloud | Get Support | Code Support
Official Cloud & Support provider for Hotcakes
Offline Reto Cossalter  
#3 Posted : Wednesday, September 11, 2019 12:56:45 AM(UTC)
Reto Cossalter

Rank: Advanced Member

Reputation:

Groups: HCC-Partner, Registered, Registered Users, Subscribers
Joined: 6/9/2017(UTC)
Posts: 47

Thanks: 24 times
Was thanked: 24 time(s) in 21 post(s)
Hi Will

Thank you for your Answer! - Your idea sounds even better 👍.
Just to draw a picture of how the emails differ by type:

Invoice:
Subject: [[Store.StoreName]] - Invoice for Order [[Order.OrderNumber]]
Body: Thank you for your order [[Order.OrderNumber]]. Please pay the invoice total with the following information (Bank, Account, BIC, IBAN...)

CreditCard:
Subject: [[Store.StoreName]] - Payment confirmend
Body: Thank you for your Order [[Order.OrderNumber]]

The only problem I see is, that the type of payment can differ within one provider. Say if the customer selects a provider, he can switch between invoice and creditcard during payment. So we would have to change the subject and body tokens according to the payment type selected.

So a subject template like [[Order.Paymenttype.Subject]] Would need multiple definitions accrding to the payment type used.
Subject definition would be
"[[Store.StoreName]] - [[Order.Paymenttype.Subject]]"
If the customer pays with credit card this would be substituted with
"[[Store.StoreName]] - [[Order.Paymenttype.CreditCard.Subject]]"
This would be substituted with
"[[Store.StoreName]] - Invoice for Order [[Order.OrderNumber]]"
and finally these tokens would be replaced..

Does this make sense?
Reto


Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.196 seconds.

Notification

Icon
Error

Loading
  • Sign-up for the Hotcakes Community Newsletter: