Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Option Images


YePix

Recommended Posts

Hello everyone. can someone help me with an idea? How do I get the pictures next to each other?

<?php
	$products_options_images_query = tep_db_query("select image from " . TABLE_PRODUCTS_OPTIONS_IMAGES . " where options_id = '" . (int)$products_options_name['products_options_id'] . "' ");
?>
<div id="piGal">
<?php
	if (tep_db_num_rows($products_options_images_query) > 0) {

		$options_images_counter = 0;
                while ($options_images = tep_db_fetch_array($products_options_images_query)) {
                  $options_images_counter++;

                  $option_images_out = '         <a href="';
                  $option_images_out .= tep_href_link(DIR_WS_IMAGES . $options_images['image'], '', 'NONSSL', false);
				  $option_images_out .= '" target="_blank" rel="colorbox" title="' . $options_images['image'] . '">' . tep_image(DIR_WS_IMAGES . $options_images['image'], $options_images['image'], '8%', '8%') . '</a>';
				
				echo $option_images_out;
				}
	}
?>
<br />
<script type="text/javascript">
	$("#piGal a[rel^='colorbox']").colorbox({
	cyclic: true
	});
</script></div>

 

Link to comment
Share on other sites

Thanks Tsimi.
Unfortunately, I can not use this version because my shop handles something different with attributes. It's an approach for me but I have so much to do and my head is already smoking.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...