Thread: Email mod's etc

Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Email mod's etc

    I am stuck and lost.

    I am wanting to modify tge enail sent to my customers after checkout to include the new UK DSR regulations, but I have hit a brick wall. I have tried to follow the code in the pages that make up the email components however I cannot follow them. I have searched the FAQ & Wiki for answers but drawn a blank. So I have a couple of questions (sorry);

    1. What is the subject that I should be searching for in the FAQ & Wiki?
    2. Should I ‘define’ what I want to say in checkout_process.php and then call that statement in order.php?

    Once I have made the changes I can then upload them for zencart community to use.

    Thank you for your time
    Learning Fast.
    Eden Craft Supplies

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Email mod's etc

    The *simplest* way is to add it to the existing EMAIL_DISCLAIMER definition, as that requires no rewriting of the order class or email templates.

    I'd suggest this, in your email_extras.php file, around line 27:

    Code:
      if (!defined('OFFICE_IP_TO_HOST_ADDRESS')) define('OFFICE_IP_TO_HOST_ADDRESS', 'OFF');
    
      define('EMAIL_UK_DSR_REGULATIONS_TEXT', "Put your text here.");
    // email disclaimer
      define('EMAIL_DISCLAIMER', EMAIL_UK_DSR_REGULATIONS_TEXT . "\n\n" . 'This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s ');
      define('EMAIL_SPAM_DISCLAIMER' ...
    Remember, the "Put your text here." part is enclosed with double-quotes, so if you actual text that you enter contains any double-quotes, then write them as \" (add a backslash before them) else you'll get PHP syntax errors.

    And if you need to add any line-breaks, use \n
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Email mod's etc

    Quote Originally Posted by DrByte View Post
    The *simplest* way is to add it to the existing EMAIL_DISCLAIMER definition, as that requires no rewriting of the order class or email templates.

    I'd suggest this, in your email_extras.php file, around line 27:

    Code:
      if (!defined('OFFICE_IP_TO_HOST_ADDRESS')) define('OFFICE_IP_TO_HOST_ADDRESS', 'OFF');
    
      define('EMAIL_UK_DSR_REGULATIONS_TEXT', "Put your text here.");
    // email disclaimer
      define('EMAIL_DISCLAIMER', EMAIL_UK_DSR_REGULATIONS_TEXT . "\n\n" . 'This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s ');
      define('EMAIL_SPAM_DISCLAIMER' ...
    Remember, the "Put your text here." part is enclosed with double-quotes, so if you actual text that you enter contains any double-quotes, then write them as \" (add a backslash before them) else you'll get PHP syntax errors.

    And if you need to add any line-breaks, use \n
    Will this way, put the info in the footer of the email? If it does then no problem to start with but I would like to put it further up the email.
    Learning Fast.
    Eden Craft Supplies

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Email mod's etc

    It puts it below the payment details, which are just after the shipping details.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Email mod's etc

    Fantastic. I will give it a go and get back.

    Thank you
    Learning Fast.
    Eden Craft Supplies

  6. #6
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Email mod's etc

    Thank you, it is doing what it says on the tin. Just a little problem, might be my fault, I would like the info on a separate line. I thought "/n" means new line.
    Learning Fast.
    Eden Craft Supplies

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Email mod's etc

    Quote Originally Posted by adb34 View Post
    Thank you, it is doing what it says on the tin. Just a little problem, might be my fault, I would like the info on a separate line. I thought "/n" means new line.
    "\n" not "/n".

    Cheers
    RodG

  8. #8
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Email mod's etc

    Quote Originally Posted by RodG View Post
    "\n" not "/n".

    Cheers
    RodG
    Sorry I put the wrong symbol down here not in the script; however the problem is still there.
    Learning Fast.
    Eden Craft Supplies

 

 

Similar Threads

  1. v150 Product Images on Invoice, Email, etc [Support Thread]
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 29
    Last Post: 26 Aug 2022, 05:52 AM
  2. Preview of Welcome email in admin showing EMAIL_SUBJECT EMAIL_GREET_NONE etc
    By belaze in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 May 2011, 09:55 AM
  3. mod rewrite to remove .html etc
    By evilonion in forum General Questions
    Replies: 0
    Last Post: 25 Nov 2010, 01:12 PM
  4. Change email,contact,etc
    By Ishtar in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jan 2010, 11:09 PM
  5. Email to exclude discount group, etc
    By elishama3 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 4 Mar 2008, 06:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg