Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    5
    Plugin Contributions
    0

    Default How to add image to contact us message sent success page?

    Hello,

    I'm running ZC 1.3.9h and I've been looking for a way to add an image to the "www.XXXXX.com/contact_us.html?action=success" page.

    When someone sends an email through the contact form, they get this message, "Your message has been successfully sent."

    I'd like to add an image above that text. I've been trying to modify the includes/languages/english/contact_us.php file to place an image above the "Your message has been successfully sent." text but so far I can only get the image to appear at the very top of the page.

    Anyone know how to do this?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: How to add image to contact us message sent success page?

    make a copy of tpl_contact_us_default.php


    This is in templates/template_default/templates/tpl_contact_us_default.php

    Bring it to your hard drive for editing.

    Find the section:


    PHP Code:
    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <div class="mainContent success"><?php echo TEXT_SUCCESS?></div>

    <div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACKBUTTON_BACK_ALT) . '</a>'?></div>

    <?php
      
    } else {
    ?>


    You will need to add in a <div> just above the <div class="mainContent success">

    PHP Code:
    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <div class="contentSuccessImage"><img src="path/to/your/image.jpg" />
    <div>

    <div class="mainContent success"><?php echo TEXT_SUCCESS?></div>

    <div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACKBUTTON_BACK_ALT) . '</a>'?></div>

    <?php
      
    } else {
    ?>
    SAVE the file and send it to /templates/YOUR_TEMPLATE/

    As the DIV has a class, you can style it. Add style declarations to your stylesheet, with:-

    .contentSuccessImage {
    xxx xxx
    xxx xxx
    }
    20 years a Zencart User

  3. #3
    Join Date
    Sep 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to add image to contact us message sent success page?

    THANK YOU schoolboy!

    That worked perfectly.

  4. #4
    Join Date
    Nov 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: How to add image to contact us message sent success page?

    How to add image to checkout_payment page?

    I just want to add this 2checkout image link along with my installed 2co payment (radio button) method to above mentioned page

    <a href="http://www.2checkout.com"><img src="http://www.2checkout.com/images/paymentlogoshorizontal.png" alt="2Checkout.com is a worldwide leader in online payment services" /></a>


    I'll Be Appreciated

 

 

Similar Threads

  1. v150 Contact Us give "Page not Found" after sent message, but ONLY in Firefox
    By coreyalderin in forum General Questions
    Replies: 32
    Last Post: 1 Jan 2013, 06:33 PM
  2. Adding Suggestions to 'Contact Us' sent\success page?
    By wizer in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2011, 02:56 PM
  3. Google Analytics on Contact Us Success Page
    By Ruthless in forum General Questions
    Replies: 13
    Last Post: 22 Jul 2010, 04:25 PM
  4. contact us success page
    By pageblair in forum Basic Configuration
    Replies: 3
    Last Post: 4 Jun 2010, 03:07 PM
  5. Contact Us -- says "England" in the success message? and not arriving?
    By Finchie6 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 21 Nov 2009, 11:25 PM

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