Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Clickable Image Or Text below each product


Guest

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
Link to comment
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 >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...