Jump to content
Sign in to follow this  
DivebombInc

Order Confirmation Email Text

Recommended Posts

Download Agent Ransack an look in your backup for the text that you have.

Then change it to your needs, and upload the new file after you have backed up your old one.....

Share this post


Link to post
Share on other sites

Note that in Phoenix, looking for the text might be misleading.  If you just want to change the wording slightly, then yes, that will find the language file.  If you want to change the structure, you would then have to find where the language constant is being used.  In this case, that would be includes/modules/notifications/templates/tpl_n_checkout.php


Always back up before making changes.

Share this post


Link to post
Share on other sites

Would it be possible to copy the file,, put it in the template map and use that one? 

I also need to work on this file, possibly one of the most dinosaur looks that e-mail message has... 🙂

Share this post


Link to post
Share on other sites
10 minutes ago, René H4 said:

Would it be possible to copy the file,, put it in the template map and use that one?

Yes.  It's just like any other template. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

@ecartz Matt, the template map I actually meant is:

/templates/gustavo/includes/modules/notifications/templates/..

Mind "gustavo"..

If that would work, would that also work for language files?

 

 

Share this post


Link to post
Share on other sites
23 minutes ago, René H4 said:

/templates/gustavo/includes/modules/notifications/templates/..

You will see that the templates folder is not required in templates so in this case the modified tpl_ file would be saved to /templates/gustavo/includes/modules/notifications/
The modified language file in this case would be saved to /templates/gustavo/includes/languages/yourLanguage/modules/notifications/

Edited by Heatherbell

Download the latest Phoenix version here: https://github.com/gburton/CE-Phoenix/archive/master.zip
Read & Learn more: Phoenix User Guide

Share this post


Link to post
Share on other sites

so, if i understood this correctly, all the template files from the store can be moved to the template area and modified there like, i.e: "xxx/includes/modules/content/index/templates/tpl_cm_i_card_products.php to xxx/templates/something/includes/modules/content/index/tpl_cm_i_card_products.php, right?

..or am i missing something?

under Phoenix 1.0.7.15

Share this post


Link to post
Share on other sites
7 hours ago, Owl Sauron said:

all the template files from the store can be moved to the template area and modified there

Any file from the store can be copied, then modified, then saved to your selected template using the same folder structure.
If no modified file exists in your selected template, the original will be used.
If you are a Supporter, you will have received example templates which show example usage.

7 hours ago, Owl Sauron said:

like, i.e: "xxx/includes/modules/content/index/templates/tpl_cm_i_card_products.php to xxx/templates/something/includes/modules/content/index/tpl_cm_i_card_products.php, right?

Yes, this is the only exception to maintaining the folder structure in the selected template - the templates folder is not used.


Download the latest Phoenix version here: https://github.com/gburton/CE-Phoenix/archive/master.zip
Read & Learn more: Phoenix User Guide

Share this post


Link to post
Share on other sites

Note that modules are also an exception in the default template.  Everything else (except language files) is stored in the template.  But the module templates are stored with the modules. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

is it my impression or in Phoenix 1.0.7.15 you have to create the template from the "override" instead of the "default" one or am i missing something?!

If you put the modified tlp_ files in the "default" they dont work except the user.css one.

line 48 from the "default" template.php file:

case 'module':
          return dirname($file) . '/templates/tpl_' . basename($file);

 

if you put those modified tlp_files on the "override" everything works just fine.
line 30 from the "override" template.php file:

case 'module':
          $file = static::extract_relative_path($file);
          $file = dirname($file) . '/tpl_' . basename($file);

          return DIR_FS_CATALOG . "templates/override/$file";

 

Share this post


Link to post
Share on other sites
11 minutes ago, Owl Sauron said:

is it my impression or in Phoenix 1.0.7.15 you have to create the template from the "override" instead of the "default" one or am i missing something?!

 

As per my previous post - "saved to your selected template" as selected in admin>Configuration>My Store>Template Selection
"override" is selected by default in 1.0.7.15 - change it if you want


Download the latest Phoenix version here: https://github.com/gburton/CE-Phoenix/archive/master.zip
Read & Learn more: Phoenix User Guide

Share this post


Link to post
Share on other sites
2 hours ago, Heatherbell said:

As per my previous post - "saved to your selected template" as selected in admin>Configuration>My Store>Template Selection
"override" is selected by default in 1.0.7.15 - change it if you want

Sorry! My fault! I had the impression from the previous post that i absolutly knew how to change templates in the admin area.

Nevertheless here i leave a small template for testing (it creates a shadowbox on the products cards in Index page). Please copy the files into:

templates/default AND templates/override
then change the template in the admin area.

you will notice that it doesnt work on the default one but it does with the override. ("wonder what overrides states for... and what "extends default_template" would mean..."). user.css works on both but not the modified tpl_

so, yes. If you pretend to create other template files you should use that override one and modify it as your new template. Or am i wrong?

template_test.zip

Share this post


Link to post
Share on other sites
On 2/11/2021 at 3:52 PM, Heatherbell said:

You will see that the templates folder is not required in templates so in this case the modified tpl_ file would be saved 


/templates/gustavo/includes/modules/notifications/

The modified language file in this case would be saved 


/templates/gustavo/includes/languages/yourLanguage/modules/notifications/

 

It took a while before I had the first part of your message @Heatherbell to skip the template map.

When I did that I had it all working with a small edit for testing.

Next is major editing. 🙂 Thanks all!

Share this post


Link to post
Share on other sites

On second thought: this part is not working, it does not take the language from here but from the standard language file.

/templates/gustavo/includes/languages/dutch/modules/notifications/

I double checked the naming and all was OK. So either this does not work for the language file or I am overseeing something.

Share this post


Link to post
Share on other sites
13 minutes ago, René H4 said:

it does not take the language from here but from the standard language file.

Maybe we are misunderstanding each other but maybe this will help (see Example 2 near bottom of page which was tested on a clean install as correct):
How to Use a Template


Download the latest Phoenix version here: https://github.com/gburton/CE-Phoenix/archive/master.zip
Read & Learn more: Phoenix User Guide

Share this post


Link to post
Share on other sites
21 minutes ago, René H4 said:

So either this does not work for the language file or I am overseeing something.

This is very new, so it may be that your version of Phoenix is older than this change.  Also, it probably isn't incorporated in Gustavo, as Burt doesn't normally update until a .0 release. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

I had to change back to the original set-up. My payment module, iDeal by SISOW, stopped sending confirmation messages.

Will have to start working on the core file now. Bah.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×