Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add banner in main catalog page


tropiland

Recommended Posts

On a "vanilla" install, the greeting is done here (in the index.php file):

 

		  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>

 

To add an image, something like this would work:

 

		  <tr>
		<td><?php echo tep_image(DIR_WS_IMAGES . 'YOUR_IMAGE_NAME_HERE', 'MOUSEOVER_TEXT_HERE', IMAGE_WIDTH, IMAGE_HEIGHT); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>

You'd need to change these parts to fit your needs:

 

YOUR_IMAGE_NAME_HERE

MOUSEOVER_TEXT_HERE

IMAGE_WIDTH

IMAGE_HEIGHT

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

On a "vanilla" install, the greeting is done here (in the index.php file):

 

		  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>

 

To add an image, something like this would work:

 

		  <tr>
		<td><?php echo tep_image(DIR_WS_IMAGES . 'YOUR_IMAGE_NAME_HERE', 'MOUSEOVER_TEXT_HERE', IMAGE_WIDTH, IMAGE_HEIGHT); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>

You'd need to change these parts to fit your needs:

 

YOUR_IMAGE_NAME_HERE

MOUSEOVER_TEXT_HERE

IMAGE_WIDTH

IMAGE_HEIGHT

 

YOUR_IMAGE_NAME_HERE:How do I indicate an image name?

Link to comment
Share on other sites

You put the name of the image you want to display in place of YOUR_IMAGE_NAME_HERE

;)

 

If you're on a UNIX server, file names are case sensitive so logo.jpg isn't the same as Logo.jpg

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...