Rank: Member
Groups: Developers, Registered, HelpDesk Joined: 11/7/2018(UTC) Posts: 23
Thanks: 5 times
|
It's been a loooong time since any meaningful changes were made to the overall email template system. And we have a whole lot more email templates than the 7.x days.
It's important to have a consistent look-and-feel to all store communications. In it's present state, the Able email template feature makes it very cumbersome to keep all store emails consistent in their appearance.
First, we should have a place where we can define separate email template headers and footers. Just like how HTML snippets work for web pages.
Next, the specific email templates become just the body. When editing an email template, the user can assign which email header and email footer to include when that specific email is rendered by nVelocity. Email template headers and footers always include support for nVelocity references to useful global vars like $store.
Finally, The template rendering routine is then modified to render the assigned email template header, then the body, and then the assigned footer into a single html email.
Now if we need to change a phone number, logo or hyperlink in the store emails, we change it in 1 place instead of 40. And the overall consistency of all store emails is vastly easier to maintain going forward. |
|
|
|
|
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
|
|
|
|
Rank: Newbie
Groups: HelpDesk, Developers Joined: 2/28/2022(UTC) Posts: 2
|
Joe,
just wondering if you were ever able to use nVelocity to pull in the Store Logo? I can't seem to find a store property that points directly to it (still looking).
Best I can see is doing something like this:
${store.StoreUrl}Themes\${store.Settings.StoreTheme}\Content\images\logo.png
which still requires you to make an assumption on png, gif or jpg.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Unfortunately your method is the only method. There is no store setting specific to the path and file name of the store logo. The system is hard-coded to presume the logo is in a specific folder, with a specific file name.
This scenario is one of a number of reasons I built an 'email theme' feature. It allows me to define themes that specify common email header and footer content. Each email template can be assigned a specific theme, use the default theme or have no theme at all. Just like page templates and store themes. We have dozens of active email templates in our system.
When I need to change the footer in my email templates, I do it all in one place. One time. And *poof* all of them are now done. It is glorious :)
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 471
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
I added this as a feature request for a future version. It's a great idea Joe. We should have done this a long time ago. |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
Rank: Newbie
Groups: HelpDesk, Developers Joined: 2/28/2022(UTC) Posts: 2
|
Thanks for confirming that Joe. I have to admit that I have my slashes wrong in my example but it works with the correct slashes. The only bad thing is that you have to assume/hardcode the file extension.
Something else I came across, my client has asked to include the vendor name in the vendor notification email template subject line. I think that is an out of the box template.
It doesn't look like the vendor object is exposed through nVelocity, it can only be used for the recipient email from what I can tell. So something like $vendor.Name does not work.
How hard would that be to implement? Would it benefit others?
The reason for the request is that my client has that vendor notification CC'd to himself and them it gets moved to another folder in his inbox by a rule. He'd like to be able to browse that and see the vendor name in the subject line.
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close