Will H Posted October 12, 2018 Share Posted October 12, 2018 Hello- I was trying to edit my logo in the default email template>html page, and I messed up the email template and now it crashed with a big red message when I try to save. I would like to fix it and restore to default. Here is the contents of the template in HTML. ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> </head> <body bgcolor="#f7f7f7"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css">html, body, table { font-family: Arial; font-size: 14px; } </style> <script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script></body> </html> <title>Default HTML Template</title> <base href="{$DATA.storeURL}" /> <base href="{$DATA.storeURL}" /> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center"> <table bgcolor="#ffffff" border="0" cellpadding="15" cellspacing="0" width="580"> <tbody> <tr> <td> </td> </tr> <tr> <td>{$EMAIL_CONTENT}</td> </tr> <tr> <td> <p>Thank you,</p> <p>Sales Team{$DATA.storeName} - Tech Simple!<br /> </p> <p><a href="{$DATA.storeURL}">{$DATA.storeURL}</a></p> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script> Any & all help would be a appreciated. (Where is this file/what do I need to replace?) Will Link to comment Share on other sites More sharing options...
bsmither Posted October 12, 2018 Share Posted October 12, 2018 What does the big red message say? In admin, Email Templates, Import, there is a drop-down to select a particular language to restore to the installed defaults, the various Content templates and Email templates (Content is dynamic according to purpose, and is inserted into the Email static outer structure.) Because these templates are processed through Smarty (the template rendering engine), there are a couple rules you must follow: 1. You must have white space inside braces: {variable} <- bad, { variable } <- good 2. Or you can surround all your javascript with {literal} and {/literal}. Link to comment Share on other sites More sharing options...
Will H Posted October 12, 2018 Author Share Posted October 12, 2018 Thank you. This is very helpful. I have it fixed and working, just a few more layout changes. P.S. only PHP mail sends reliably, SMTP/SMTP (with SSL or TLS) will actually send during testing (sometimes) and report failure every time. I'm sticking with PHP for now. Will The big red error message is the big blurb of errors " <script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0305'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script> I deleted it (after previously deleting the "broken image placeholder" I had incorrectly edited earlier. I added an image URL and got it working. I am ok - for now! thank you. Link to comment Share on other sites More sharing options...
Will H Posted October 12, 2018 Author Share Posted October 12, 2018 Well, It seems thr more reading I do, the more I realize (a little too late) I have edited the wrong thing. BSMITHER: " say structural because it contains nothing about the contents or purpose of the email. All it contains is the HTML structure that makes a rich-text email - with a few common general items such as store logo, web address, and signature block. " This is what I edited and finally deleted. I created a new one, which of course is blank. Where can I get the source code to restore this to brand new? I apparently should have cloned it and played with the clone Will Link to comment Share on other sites More sharing options...
bsmither Posted October 12, 2018 Share Posted October 12, 2018 During a fresh setup process, CubeCart sends SQL statements to the database server to put the structural templates into the appropriate database table. Those statements are located at: /setup/db/install/email.sql If you no longer have the /setup/ folder, you can download a full package from CubeCart's download site and extract them from there. Earlier, I said the Import/Restore would also restore the Email static structural templates. That's not true as the source of these templates is in the /setup/ folder -- typically deleted after a successful install. Link to comment Share on other sites More sharing options...
Will H Posted October 12, 2018 Author Share Posted October 12, 2018 35 minutes ago, bsmither said: During a fresh setup process, CubeCart sends SQL statements to the database server to put the structural templates into the appropriate database table. Those statements are located at: /setup/db/install/email.sql If you no longer have the /setup/ folder, you can download a full package from CubeCart's download site and extract them from there. Earlier, I said the Import/Restore would also restore the Email static structural templates. That's not true as the source of these templates is in the /setup/ folder -- typically deleted after a successful install. Thank you. - The setup folder is gone. But I do have the (2nd copy) of the store in my subfolder. I am going to try looking there/ or download a full install. Will If I do a fresh install, won't it wipe all the work I have done? Link to comment Share on other sites More sharing options...
Will H Posted October 12, 2018 Author Share Posted October 12, 2018 I got it back. I used the clone app function in cPanel, cloned the install to the root folder and checked the email template and it was fixed. Thanks for your help BSMITHER. Will Link to comment Share on other sites More sharing options...
bsmither Posted October 12, 2018 Share Posted October 12, 2018 I was describing what happens during the setup process -- I wasn't suggesting you perform a setup action. Glad to see you got it sorted. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.