DivebombInc Posted February 11, 2021 Share Posted February 11, 2021 Where would I find the body of the order confirmation email? I'd like to change it up a bit. OSCOM CE Phoenix v1.0.7.10 Link to comment Share on other sites More sharing options...
René H4 Posted February 11, 2021 Share Posted February 11, 2021 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..... Link to comment Share on other sites More sharing options...
♥ecartz Posted February 11, 2021 Share Posted February 11, 2021 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. Link to comment Share on other sites More sharing options...
René H4 Posted February 11, 2021 Share Posted February 11, 2021 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... 🙂 Link to comment Share on other sites More sharing options...
♥ecartz Posted February 11, 2021 Share Posted February 11, 2021 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. Link to comment Share on other sites More sharing options...
René H4 Posted February 11, 2021 Share Posted February 11, 2021 3 minutes ago, ecartz said: Yes. It's just like any other template. That's great! I have a job for this evenring 🙂 Link to comment Share on other sites More sharing options...
René H4 Posted February 11, 2021 Share Posted February 11, 2021 @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? Link to comment Share on other sites More sharing options...
Heatherbell Posted February 11, 2021 Share Posted February 11, 2021 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/ Link to comment Share on other sites More sharing options...
René H4 Posted February 11, 2021 Share Posted February 11, 2021 That sounds nice, I will play with this soon. @DivebombInc sorry for hyjacking your topic, but I am sure this is helpfull for you too! Link to comment Share on other sites More sharing options...
Owl Sauron Posted February 11, 2021 Share Posted February 11, 2021 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 Link to comment Share on other sites More sharing options...
Heatherbell Posted February 12, 2021 Share Posted February 12, 2021 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. Link to comment Share on other sites More sharing options...
♥ecartz Posted February 12, 2021 Share Posted February 12, 2021 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. Link to comment Share on other sites More sharing options...
Owl Sauron Posted February 12, 2021 Share Posted February 12, 2021 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"; Link to comment Share on other sites More sharing options...
Heatherbell Posted February 12, 2021 Share Posted February 12, 2021 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 Link to comment Share on other sites More sharing options...
Owl Sauron Posted February 12, 2021 Share Posted February 12, 2021 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 Link to comment Share on other sites More sharing options...
René H4 Posted February 12, 2021 Share Posted February 12, 2021 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! Link to comment Share on other sites More sharing options...
René H4 Posted February 12, 2021 Share Posted February 12, 2021 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. Link to comment Share on other sites More sharing options...
Heatherbell Posted February 12, 2021 Share Posted February 12, 2021 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 Link to comment Share on other sites More sharing options...
♥ecartz Posted February 12, 2021 Share Posted February 12, 2021 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. Link to comment Share on other sites More sharing options...
René H4 Posted February 12, 2021 Share Posted February 12, 2021 OK I will have to live with that then..... 🙂 Link to comment Share on other sites More sharing options...
René H4 Posted February 13, 2021 Share Posted February 13, 2021 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.