Jump to content
Sign in to follow this  
lakelandprinting

Add Clickable Image Or Text below each product

Recommended Posts

It seems there can be a lot of wasted white space with some products. How can I add an image to each listing (not unique). I'm sure there is a place I can put it once and the same image will appear. Like this:

add-image-undercart.jpg

I've Googled it, Yahoo'd it, I check the OsCommrce forums and I can't find it! I know I've see it before!

I don't want to add it to the footer, just below the table with the "add to cart" button.

Edited by lakelandprinting

Share this post


Link to post
Share on other sites

Find the code in product_info.php for the "Buy Now" button.

 

It will look something like this:

 

<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

Follow the code on down till you find this:

 

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

JUST AFTER that code is where you want to put your code.

 

Like this:

 

	  <tr><td>

******** YOUR NEW CODE GOES HERE ********

  </td></tr>


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 >

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×