Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding information to contact page


osmium

Recommended Posts

hey all

 

I am wanting to add some information to the "contact_us.php" page

 

in particular I want to add some alternative contact information in case my customers dont wish to fill out the standard form. How do I add some text to the page?

 

I have tried adding a "define txt" part to the code (copied from the shipping page) but the contact_us page dosent change.

 

thanks

Link to comment
Share on other sites

hey all

 

I am wanting to add some information to the "contact_us.php" page

 

in particular I want to add some alternative contact information in case my customers dont wish to fill out the standard form. How do I add some text to the page?

 

I have tried adding a "define txt" part to the code (copied from the shipping page) but the contact_us page dosent change.

 

thanks

 

Hi,

 

Take a look at /catalog/includes/languages/english/contact_us.php and change the following line:

 

define('ENTRY_NAME', 'Full name:');

 

into:

 

define('ENTRY_NAME', 'Put your extra text here<BR>BR>Full name:');

 

 

Kind regards,

Edze

Link to comment
Share on other sites

You can open catalog/contact_us.php and add the text anywhere you want to on the page. Just making sure it is in the html and not php code parts. =)

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

You could do this. Find this section of code in contact_us.php

<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>

Right under it add

<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo CONTACT_TEXT; ?></td>
</tr>

Then add the following to includes/languages/english/contact_us.php

define('CONTACT_TEXT', 'Enter text here');

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Alternatively you could look below my name for the Contribution "Add Store Details To Contact page". Any information you input into Store Details under Configuration in your osCommerce control panel is automatically added to the contact_us.php page.

 

Vger

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...