osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

editing contact_us

This is a discussion on editing contact_us within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello I'd like to add some text to contact_us.php, above the email form. I should mention that I've already successfully ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-18-2004, 11:19 AM
New Member
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
frobscottle
Default editing contact_us

Hello

I'd like to add some text to contact_us.php, above the email form.

I should mention that I've already successfully made some mods, including taking links out of the information box, and editing the privacy and shipping pages. But the contact_us page is different from those two, and I'm stuck.

Thanks,

frobscottle
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-25-2004, 12:27 PM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

Two files will need to be modified.

catalog/templates/content/contact_us.tpl.php
catalog/includes/languages/english/contact_us.php

Edit catalog/templates/content/contact_us.tpl.php around line #53, insert:

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

This will ECHO the text you are going to add in catalog/includes/languages/english/contact_us.php

Edit catalog/includes/languages/english/contact_us.php around line #18 by inserting:

define('ENTRY_TEXT', 'This is where your additional text can be written');


That's all folks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-25-2004, 12:48 PM
New Member
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
frobscottle
Default

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-26-2004, 09:14 AM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

One thing I NEED to add is that if in your text you use any apostrophes (i.e., I'll, aren't, won't, isn't, etc.) you will have problems unless you place a backslash before the apostrophe (in the text of catalog/includes/languages/english/contact_us.php)

Your text should look like this:
I\'ll
aren\'t
won\'t
isn\'t

Forgot to mentioned that!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Spam flaw in stock contact_us.php neil osCMax v2 Customization/Mods 0 09-14-2005 05:57 PM
I erased contact_us.php! Alesha osCommerce 2.2 Modification Help 6 07-19-2004 08:20 AM
Add checkboxes to contact_us.php nelsonlo osCMax v1.7 Discussion 0 06-23-2004 04:14 PM
editing each Box Anonymous osCMax v1.7 Discussion 1 03-04-2004 12:49 AM
Adding new text fields to Contact_Us page mac osCommerce 2.2 Modification Help 1 05-03-2003 06:20 AM


All times are GMT -8. The time now is 09:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax