Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

    Default add store address to customer confirmation

    Hi,


    I want to add the stores address and contact details to the end of the confirmation email that gets sent to customers.

    How do i do this?

    I've looked at checkout_process.php in the languages area but this defines the text variables that go into it. Do I create a new variable, or can I add a variable into order.php that will take the store address and add it onto the end?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: add store address to customer confirmation

    If you only want this on the Orders ... then you could customize the:
    /includes/classes/orders.php

    Around line 968 you would see:
    PHP Code:
        // include disclaimer
        
    $email_order .= "\n-----\n" sprintf(EMAIL_DISCLAIMERSTORE_OWNER_EMAIL_ADDRESS) . "\n\n"
    If you were to add on to the $email_order before that line it would appear above the disclaimer on the text email ...

    For the HTML email, you would need to customize the file:
    /email/email_template_checkout.html

    And add something above the:
    PHP Code:
    <div class="disclaimer">
      <
    div class="disclaimer1">$EMAIL_DISCLAIMER</div>
      <
    div class="disclaimer2">$EMAIL_SPAM_DISCLAIMER</div>
    </
    div
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

    Default Re: add store address to customer confirmation

    Hi Ajeh,

    I've added the following to order.php

    $email_order .="\n---- Our Contact Details ---\n" . STORE_NAME_ADDRESS . "\n\n";

    I added it just above

    Code:
    // include disclaimer
    It appears to work perfectly. Now if we change the address on the store it will always pick up on the correct address.

    I hope this helps other people out. Maybe something that could be included with the next release :)


  4. #4
    Join Date
    Mar 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: add store address to customer confirmation

    Brilliant, thanks to both of you solved my problem as well

  5. #5
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: add store address to customer confirmation

    How did you customize the email_template_checkout.html???

    TIA
    ZC 1.3.7

 

 

Similar Threads

  1. Replies: 31
    Last Post: 7 Feb 2015, 03:36 AM
  2. Add customer telephone to confirmation email
    By stuffdone in forum Managing Customers and Orders
    Replies: 4
    Last Post: 13 Jan 2010, 04:57 PM
  3. Order Confirmation email missing customer address?
    By azwli in forum General Questions
    Replies: 19
    Last Post: 6 Nov 2009, 06:58 AM
  4. Replies: 4
    Last Post: 9 Jun 2009, 08:17 PM
  5. Add text to store copy of email confirmation
    By kappaluppa in forum General Questions
    Replies: 0
    Last Post: 26 Feb 2007, 08:54 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