Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Home page


UnseenMenace

Recommended Posts

The index.php file in the root directory contains the code needed to format the page (position tables and the like). The text that is displayed on the home page is located in includes/languages/english/index.php. Note that even though they both have the same name, they are completely different files and cannot be interchanged.

 

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

Yes, you can use html. However, if it involves a link to somewhere within your shop, you will need to change that part to php.

 

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 your help so far jack but im really new to this so need additional guidence

 

I have a file for example called map.jpg located in the directory www.mysite.com/images/

 

how would I best go about calling this image to display on the home page above the new products.

Link to comment
Share on other sites

If you are just going to display the image with no text and no links, then just add the following

<tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
<tr>
<td><img src="images/map.jpg" alt="map"></td>
</tr>

above the new products code which is

		  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

The tep_draw_separator is not really needed for what you want but it allows you to control the spacing between the items by changing the 10 to whatever you like.

 

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

The code I posted goes in the index.php file in the root. When you are searching for the code section containing

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

be sure to use the last one as there are two of them.

 

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

Yes, that is correct. You went from not knowing which page to edit to knowing which of three to edit. not bad for a days work. :)

 

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

Archived

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

×
×
  • Create New...