Jump to content
xt:Commerce Community Forum

Bilder Thumbnails in product_info_v1.html einf?gen


Digital Access

Recommended Posts

Einfach in der Datei includes/modules/product_info.php folgenden Code:

//mo_images - by [email][email protected][/email]

 if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {

 	$connector = '/';

 }else{

 	$connector = '&';

 }

 $info_smarty->assign('PRODUCTS_POPUP_LINK', 'javascript:popupWindow(\''.xtc_href_link(FILENAME_POPUP_IMAGE, 'pID='.$product->data['products_id'].$connector.'imgID=0').'\')');

 $mo_images = xtc_get_products_mo_images($product->data['products_id']);

 if ($mo_images != false) {

 	foreach ($mo_images as $img) {

  $mo_img = DIR_WS_INFO_IMAGES.$img['image_name'];

  $info_smarty->assign('PRODUCTS_IMAGE_'.$img['image_nr'], $mo_img);

  $info_smarty->assign('PRODUCTS_POPUP_LINK_'.$img['image_nr'], 'javascript:popupWindow(\''.xtc_href_link(FILENAME_POPUP_IMAGE, 'pID='.$product->data['products_id'].$connector.'imgID='.$img['image_nr']).'\')');

 	}

 }

 //mo_images EOF
erg?nzen durch:
//Thumbnails

 if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {

 	$connector = '/';

 }else{

 	$connector = '&';

 }

 $mo_images = xtc_get_products_mo_images($product->data['products_id']);

 if ($mo_images != false) {

 	foreach ($mo_images as $img) {

  $mo_img = DIR_WS_THUMBNAIL_IMAGES.$img['image_name'];

  $info_smarty->assign('THUMB_PRODUCTS_IMAGE_'.$img['image_nr'], $mo_img);


 	}

 }

 //Thumbnails Ende
Dann kanst man in der product_info_v1.html so auf die Bilder zugreifen:
<img src="{$THUMB_PRODUCTS_IMAGE_1}" />

<img src="{$THUMB_PRODUCTS_IMAGE_2}" />

usw...je nachdem wieviele zus?tzliche Bilder man dem Artikel hinzugef?gt hat.

Link to comment
Share on other sites

  • 1 month later...

Hi,

was muss ich denn an diesem tollen Beitrag ?ndern, dass er mir den Thumbnail vom ersten Bild anzeigt also von zum Beispiel 12_0.jpg

ich habe alle m?glichen Kombinationen probiert

{$THUMB_PRODUCTS_IMAGE_0}

{$THUMB_PRODUCTS_IMAGE_1}

funkt leider nicht, er zeigt mir nur den alt text an, und wenn ich den Quelltext reinschaue, dann zeigt er mir nur das an

12_1.jpg

gruss joe

Link to comment
Share on other sites

  • 3 years later...

Archived

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

×
  • Create New...