Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

images folder


Guest

Recommended Posts

any body have a solution for making this...??

two folders for the products... one big and one small:

images/products

images/products_big

 

i have over 40 000 products so i can't have them all in images/ folder...

 

and i have both images named the same like: small = 11112.jpg, big = 11112.jpg...

 

so i need different folders...

Link to comment
Share on other sites

Presume you'll want the small pictures showing in the shop, and the large pictures for the pop-up from the product_info page ?

 

Yep, thats doable for sure as I helped someone else do (almost) the same thing, you'll need to search in these forums for the thread.

 

But basically:

 

Upload your large images to the large folder. Do your small images set to the products.

 

Then in popup_image.php do:

 

<body onload="resize();">

<?php echo tep_image(DIR_WS_IMAGES . "large/" . $products_values['products_image'], $products_values['products_name']); ?>

</body>

 

In product_info.php do:

 

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . "large/" . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

 

 

I think that is it. Might be wrong, but it'll give you a start...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...