Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How To Go From 1 to 2 Product Images?


EPStore

Recommended Posts

Hey guys,

 

As for now, there's only 1 preview picture showing on my products page (for every item)...

How should I go about adding another one, of the exact same size, but just next to the first so that I could have a front AND a rear view of my products?

Is it as simple as copying and pasting a section of some code?

Sorry if this sounds like a stupid question; I'm just getting started in PHP, so ya maybe I am stupid after all :)

 

 

I think this is the code for the first picture:

 

$p_desc = substr(strip_tags($product['products_description']), 0, MAX_DESCR_PRODS_NEW).'...';
       $p_id = $product['products_id'];
	$p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
	$p_name = '<span><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' .$products_new['products_name'] . '</a></span>';

 

Anyone?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...