Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add more info to contact_us.php page


ibjcha

Recommended Posts

Yes, i am the very newbie to the OSC, and the very very newbie to the code and so on. this i come here to request help.

 

i installed the Merchant V2.2 rc2a and did not add any add-ons yet.

 

this is my simple target: i really want to show my full contact details beside the columns of: "name & e-mail box to be filled in", yes, the right top place of this contact_us.php.

 

the reason is i want our customer to be formed fully by information such as:

 

Company name and address,

the people in charge of sale,

the mail address, and instant messenger,

and the telephone no.

 

i understand that osc is helpful to us and did make us to show these infomation in our back stage of "Store".

 

but i really want to add more so, i hope i had expressed clearly to you what i want.

 

somebody could give me a sample that how to customize the contact_us.php so as to fulfill this target?

somebody could give me a sample that how to customize the contact_us.php so as to fulfill this target?

Link to comment
Share on other sites

Yes, i am the very newbie to the OSC, and the very very newbie to the code and so on. this i come here to request help.

 

i installed the Merchant V2.2 rc2a and did not add any add-ons yet.

 

this is my simple target: i really want to show my full contact details beside the columns of: "name & e-mail box to be filled in", yes, the right top place of this contact_us.php.

 

the reason is i want our customer to be formed fully by information such as:

 

Company name and address,

the people in charge of sale,

the mail address, and instant messenger,

and the telephone no.

 

i understand that osc is helpful to us and did make us to show these infomation in our back stage of "Store".

 

but i really want to add more so, i hope i had expressed clearly to you what i want.

 

somebody could give me a sample that how to customize the contact_us.php so as to fulfill this target?

somebody could give me a sample that how to customize the contact_us.php so as to fulfill this target?

 

 

i think i could use STS to fulfill this target after i got into the STS.

i could change the template and add the FOOTER for each XXX.php.html, and the contact info would be included there.

 

anyway, i would appreciate much if somebody could figure out how to achieve the point i requested above in the first post!

 

Thank you.

Link to comment
Share on other sites

Without using STS; to add comments to contact us, this is what I did

 

Edit contact_us.php, find

 

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

 

replace with

 

              <tr>
               <td class="main" width="44%"><?php echo ENTRY_NAME; ?></td>
               <td class="main" width="55%" rowspan="4" bordercolor="#000000">store name<br>add line 1, town,<br>county, post code<br>country.<br><br>Telephone 12345 67890<br><br>Sale rep : Mr John Smith</td>
             </tr>

 

Obviously fill in your contact details

 

The footer already appears at the bottom of every page, so not sure what you are asking, however I moved the information box from the left column to footer, replace you includes/footer.php with

 

<?php
/*
 $Id: footer.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

// require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
   <td class="footer" align="center">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
 </tr>
<tr>
	<td class="headerNavigation" align="center"><a href="<?php echo tep_href_link(FILENAME_CONTACT_US); ?>" class="headerNavigation"><?php echo BOX_INFORMATION_CONTACT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CONDITIONS); ?>" class="headerNavigation"><?php echo BOX_INFORMATION_CONDITIONS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_PRIVACY); ?>" class="headerNavigation"><?php echo BOX_INFORMATION_PRIVACY; ?></a>  | 
<a href="<?php echo tep_href_link(FILENAME_SHIPPING);?>" class="headerNavigation"><?php echo BOX_INFORMATION_SHIPPING; ?></a>  | 
<a href="<?php echo tep_href_link(FILENAME_ABOUT_US);?>" class="headerNavigation"><?php echo BOX_INFORMATION_ABOUT_US; ?></a>  | 
<a href="<?php echo tep_href_link(FILENAME_DYNAMIC_SITEMAP);?>" class="headerNavigation"><?php echo BOX_INFORMATION_DYNAMIC_SITEMAP; ?></a>  </td>
</tr>
<tr>
	<td class="headerNavigation" align="center">  <?php echo FOOTER_TEXT_BODY; ?></td>
</tr>
</table>

</div>

 

You may need to edit the bits re SITEMAP & ABOUT_US if you don't have these contribs.

 

To then remove the info box from column left, remove the line

 

  require(DIR_WS_BOXES . 'information.php');

 

from \includes\column_left.php

 

Hope this helps

Link to comment
Share on other sites

1) Thank you very much Steven, and i have contact_us.php done. Thanks.

 

2) I thought by using STS, i can revise the (only a few needed) templates in abc.php.html easily. and to do this is to adding one more footer for new STS templates beneath:

 

Copyright © 2008 ABC compnay

Powered by osCommerce

 

STS FOOTER

 

3) I thought you provided me another way to solve (edit) the original footer from OSC. Such as to change or delete this:

 

Copyright © 2008 ABC compnay

Powered by osCommerce

 

4) further more: i thought i could not afford deleting "information box", because, I did not know what to put this box then. I am exactly a newbie, only to copy some code to paste or do little change on some basis.

 

 

And one another question to everyone:

When i set up STS template, i found the hyperlink of company logo is LOST, ie: there is no hyperlink over the customized store_logo.gif,

So i am to add some word to make it back:

 

/includes/sts_templates/full/index.php.html

/includes/sts_templates/full/sts_template.html

....

 

<tr class="header">

<td valign="middle">

<a href="/index.php">

<img border="0" src="images/store_logo.png" alt="ABC Company"></a></td>

<td align=right>

 

I really do know why, when i set the STS up, the hyperlink lost, how about you?

Link to comment
Share on other sites

           <td class="main" width="50%"><?php echo ENTRY_NAME; ?></td>
               <td class="main" width="50%" rowspan="4">
                 <p align="right">
                   <b>ABC Company</b><br>ADD<br> Sales Rep: John Smith<br>Mob:123-234-4567br>
	            <a href="mailto:[email protected]">Mail Us!
                   </a>
                 </p>
               </td>

 

i think i make the information about contact details right top that place. :)

 

Thank you for you inspiration, Steven.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...