Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SIMPLE HELP NEEDED


Guest

Recommended Posts

Hi

 

Probably a very simply solution to this problem -

 

I need to add some custom text above the email boxes on the the contact_us.php page on our OSC store.

 

I have tried many times with the define('TEXT_INFORMATION', 'TEXT GOES HERE'); thingy but the text never appears.

 

Below is the contact_us.php file, can somebody please show me where and how I should insert any custom text I want.

 

Thanks guys

 

<?php

/*

$Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'Contact Us');

define('NAVBAR_TITLE', 'Contact Us');

 

define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.');

define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME);

 

 

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

define('ENTRY_EMAIL', 'E-Mail Address:');

define('ENTRY_ENQUIRY', 'Enquiry:');

?>

Link to comment
Share on other sites

You have to add your text in the file you listed but then you must call it in the contact us page in the root. Take a look at the contact us contribution. It shows how to do this.

 

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

Thanks for that, the contribs look complicated and I dont need the extra stuff in them. Also by using the contribs the custom text I need to display would also be on the admin side invoices etc which I dont want.

 

Cany anyone tell me the command I need to use to put a little bit of text on the contactus.php page? And then the resulting command needed on the other file that pulls it onto the page?

 

Hoew come its so easy to add and change text on shipping.php or conditions.php, but not contactus.php?

 

Please guys, im desperate.

Link to comment
Share on other sites

in catalog/contact_us.php:

 

after:

 

			<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>
	</table></td>
  </tr>

 

add:

 

	  <tr>
	<td class="main"><?php echo CONTACT_EXTRA_INFO; ?></td>
  </tr>

 

and in catalog/includes/languages/english/contact_us.php:

 

after:

 

define('ENTRY_ENQUIRY', 'Enquiry:');

 

add:

 

define('CONTACT_EXTRA_INFO', 'Put your extra info here');

 

Good Luck

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...