Post by cozzienz » Mon Feb 11, 2013 10:41 am

Hi all,

www.cozziemo.co.nz
OC 1.5.1.3

Looking to place custom text on the contact us page between the page title and the required fields. Since removing the address/phone info has left the page very bland.

Do you know the file and directory path, to be able to put our message on this page :)

Many thanks

Cozzie

User avatar
Active Member

Posts

Joined
Sun May 15, 2011 11:13 am

Post by grgr » Mon Feb 11, 2013 3:51 pm

../catalog/controller/information/contatct.php
add somthing like:

Code: Select all

$this->data['text_message'] = $this->language->get('text_message');
../cataglog/language/english/information/contact.php
add something like:

Code: Select all

$_['text_message']  = 'Your message here';
../catalog/view/theme/YOUR_THEME/template/information/contact.tpl

Code: Select all

      <div class="right">
        <?php echo $message; ?>
        <br />
      </div>

Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by cozzienz » Tue Feb 12, 2013 7:36 am

Hi Grgr,

Thanks for taking time to help :)

The code you have suggested to add a custom message assists be able to apply a custom message to the page after a customer has successfully submitted an inquiry.

I am after how to insert a custom message on the contact us page between the title and required entry fields before they submit their Inquiry :)

Cozzie

User avatar
Active Member

Posts

Joined
Sun May 15, 2011 11:13 am

Post by grgr » Tue Feb 12, 2013 4:45 pm

As above, that is absolutely correct.

One small mistake: it should have been

Code: Select all

      <div class="right">
        <?php echo $text_message; ?>
        <br />
      </div>
or better:

Code: Select all

  <h1><?php echo $heading_title; ?></h1>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
    <div class="contact-info">
      <div class="content"><div class="left"><b><?php echo $text_message; ?></b><br />
    </div>
    </div>
    <h2><?php echo $text_contact; ?></h2>

Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 34 guests