Forums / Templates, Stylesheets, Page Layout / How to add image to contact us message sent success page?

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

Views: 1,465

Results 1 to 4 of 4
29 Oct 2011, 6:29 PM
#1
roller avatar

roller

New Zenner

Join Date:
Sep 2011
Posts:
6
Plugin Contributions:
0

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?

29 Oct 2011, 9:33 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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
  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_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

<?php
  } else {
?>

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

<?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_BACK, BUTTON_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

30 Oct 2011, 2:06 AM
#3
roller avatar

roller

New Zenner

Join Date:
Sep 2011
Posts:
6
Plugin Contributions:
0

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

THANK YOU schoolboy!

That worked perfectly.:clap:

24 Dec 2011, 5:38 PM
#4
s0a0a0z avatar

s0a0a0z

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

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