Results 1 to 4 of 4

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 ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Oct 2003
    Location
    The Antelope Valley in SoCal
    Posts
    47
    Rep Power
    0


    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!

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    Default

    Thanks!

  4. #4
    Member
    Join Date
    Oct 2003
    Location
    The Antelope Valley in SoCal
    Posts
    47
    Rep Power
    0


    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!

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •