Jump to content

Reinstall Email Templates


wcs39204

Recommended Posts

CubeCart 6.5.1

PHP 8.1.20

So one solution on another thread, has now broken 2 things. I've been working on this mostly on my own and have got everything working as it should without having to bother anyone. I'm down to 1 more item, which is the Double Opt-In not sending the customer a confirmation email. Here is the issue (I was told) that this line in the email contents was causing that problem.

User: Verify Newsletter Subscription No translations exist

All other emails from my site are being sent and received via PHP Mail(). I was told to delete my email templates, then reinstall them in hopes to force a translation onto that portion of the email contents I guess. Well I don't know how to reinstall the email templates. And all help on that topic seemed to just abruptly stop after I took the advice given, and then got stuck. Seems kinda like a cash grab, but if I gotta pay for support then what choice do I have? I moved my store from another ecommerce system to CubeCart and now some of the features I've relied on for years, aren't working. 

So what I need is:

Help reinstalling the deleted email templates (I've clicked Import, selected the enUS option, and then save. Nothing happens.)

Force this: User: Verify Newsletter Subscription No translations exist  -  To this: User: Verify Newsletter Subscription enUS (I was told that's why the confirmation isn't being sent and there are ZERO entries in the email log, like CC isn't even trying to send them probably because there's no language set)

Then I'm set. Will pay if that's what it takes. Just need the help please.

Link to comment
Share on other sites

4 minutes ago, bsmither said:

In admin, Email Templates, Email Contents tab, how many and which flags are show for the User: Verify Newsletter Subscription line in the table?

In Admin, Email Templates, Email Contents tab, everything single thing there has a US Flag, everything but the one line "User: Verify Newsletter Subscription" which has the "No Translations Exist" in the place where the flags go.

Link to comment
Share on other sites

Unfortunately, en-US does not have the "newsletter.verify_email" phrase in that language file.

I am currently checking if this language pack has this phrase in the pack version 1.0.2.

No, it does not. (I will post a bug report.)

A work-around is to open the file 'email_definitions.xml' and copy the group of lines that span near lines 427-436, and paste them in 'email_en-US.xml', at the end, just above the final line: </emails>.

Then try the import again.

But you have said: "I've clicked Import, selected the enUS option, and then save. Nothing happens."

Specifically, is the choice enUS or en-US? And by 'nothing', do mean there was no change, or absolutely nothing happened, as if you didn't even click the button and Cubecart didn't show you a new page?

Link to comment
Share on other sites

Ok I'll try that. Any chance you could be more specific on the lines I need? I'm not a coder or even great with these files.

Also, Specifically in the importer tab, the choice is en-US.

UPDATE That did the trick! Confirmation email is sent and confirms the subscription. I pasted the lines you mentioned, and put it in the other file you told me to, and that instantly changed the language for the line that had no translation. Thank you for that.

Now, the final part of the puzzle is... When I was told to delete the email templates, I went to Admin-Email Templates-Email Templates tab-Default Email Templates, and deleted it. Is there a way to get those back? Or was it anything truly lost when I deleted those?

Edited by wcs39204
Link to comment
Share on other sites

Yep! Thank you for that! Ya gotta let me buy your lunch or something!

Last thing, about the actual templates that I deleted, are those necessary? Is there a way to add them back? I downloaded my Basix template in zip format if that helps.

Link to comment
Share on other sites

The email templates, contained in files located in the /language/ folder, has nothing to do with a skin package (such as, Basix).

Having deleted template content (however that happened), it was restored when you last imported the file that was a renamed copy of 'email.definitions.xml'.

So, I'm not sure what it is that you are questioning are necessary.

 

Link to comment
Share on other sites

Ok perfect! I deleted them because I thought that's what the fella on the other thread was telling me to do. It was just the 'Default Email Template' in the templates tab. There were 2 options there, Default Newsletter and Default Email. I deleted the email one because I thought that's what was being asked of me. I did leave the Default Newsletter option in tact tho.

 

But If I don't need them, it's not a problem!

 

Templates.png

Link to comment
Share on other sites

Uh, well, no. That was not good.

Let's create a template to get that back.

In admin, Email Templates, Email Templates tab, click Create a Template. A new page will show. There will be three tabs. Copy the following content for each of the tabs as indicated.

General Tab:
Default Emails

HTML Content Tab:
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <style type="text/css">
    html, body, table {
      font-family: Arial;
      font-size: 14px;
    }
    .w3w{
color: #E11F26;
display: block
}.w3w a{
color: #333333;
text-decoration: none
}
</style>
    <title>Default HTML Template</title>
    <base href="{$DATA.storeURL}" />
  </head>
  <body bgcolor="#f7f7f7">
<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><a href="{$DATA.storeURL}"><img alt="{$DATA.storeName}" border="0" src="{$DATA.logoURL}" /></a></td>
            </tr>
            <tr>
              <td> {$EMAIL_CONTENT}</td>
            </tr>
            <tr>
              <td><p> Kind regards,</p>
                <p> The {$DATA.storeName} Staff<br />
                  <a href="{$DATA.storeURL}">{$DATA.storeURL}</a></p></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
</body>
</html>

Plain Text Content Tab:
{$EMAIL_CONTENT}

Kind regards,

The {$DATA.storeName} Staff
{$DATA.storeURL}

Save.

When the list of templates come back, click the radio button in the Default column. Save.

Edited by bsmither
Link to comment
Share on other sites

Sorry about that! We lost power. Again. "Excessive Heat" they say. 🤣

Ok I did the steps above, and it put it back as it was! I think you have single handedly fixed all of my remaining issues! Thank you SO much!

Edited by wcs39204
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...