Schnapp2000 Posted January 6, 2008 Report Share Posted January 6, 2008 Hallo, ich brauche mal einen Ratschlag zur Bildquelle in meiner Template-Datei. Ich bin gerade dabei, das Standard-Template umzubauen; aber leider werden einfach meine Artikel-Info-Bilder nicht gefunden. Als Bildquelle habe ich angegeben: <img src="http://www.schnapp2000.de/xtc/images/product_images/info_images/%7B$PRODUCTS_IMAGE%7D"> Wenn ich den letzten Teil durch einen jpg.-Link ersetze; z.B. <img src="http://www.schnapp2000.de/xtc/images/product_images/info_images/002-967.jpg">, dann wird das Bild korrekt angezeigt. Allerdings will ich natürlich nicht dasselbe Bild für alle Artikel verwenden; er sollte in dem Ordner automatisch nach dem richtigen Bild suchen. Kann mir jemand sagen, wie man dazu die "img src" verändern muss? Danke!!!!!! Schnapp2000 PS: auch <img src="http://www.schnapp2000.de/xtc/images/product_images/info_images/{$PRODUCTS_IMAGE}"> oder <img src="{$PRODUCTS_IMAGE}"> tun es nicht. :-( Falls es sich jemand antun will, hier der komplette (vorläufige) HTML-Code: <html><head></head><body>{config_load file="$language/lang_$language.conf" section="product_info"} {$PRODUCT_NAVIGATOR} {$FORM_ACTION} <table border="0" width="100%"> <tbody><tr> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td class="main"><table border="0" width="100%"> <tbody><tr> <td class="contentsTopics">{$PRODUCTS_NAME}</td> <td align="right"><strong>{$PRODUCTS_PRICE}</strong><br>{$PRODUCTS_TAX_INFO}{if $PRODUCTS_SHIPPING_LINK}{$PRODUCTS_SHIPPING_LINK}{/if}</td> </tr> </tbody></table> {if $PRODUCTS_VPE}{$PRODUCTS_VPE}<br>{/if} {if $PRODUCTS_MODEL!=''}{#model#} {$PRODUCTS_MODEL}{/if} {$PRODUCTS_DISCOUNT}<br> {#print#}{$PRODUCTS_PRINT}<br> {if $SHIPPING_NAME} {if $SHIPPING_IMAGE}{/if} <table border="0" cellpadding="0" cellspacing="0"> <tbody><tr valign="middle"> <td class="main">{#text_shippingtime#}</td> <td class="main" nowrap="nowrap"> <img src="%7B$SHIPPING_IMAGE%7D" alt="{$SHIPPING_NAME}"></td> <td> </td> </tr> </tbody></table> {/if} </td> </tr> </tbody></table> <table border="0" width="100%"> <tbody><tr> <td style="border-color: rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);" align="center" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="1"> <tbody><tr> <td align="center" width="160"> {if $PRODUCTS_IMAGE!=''} {/if} {if $PRODUCTS_IMAGE_1 != ''} {/if} {if $PRODUCTS_IMAGE_2 != ''} {/if} {if $PRODUCTS_IMAGE_3 != ''} {/if} <!-- more images eof --> <table border="0" cellpadding="8" cellspacing="4" width="1"> <tbody><tr> <td><img src="{$PRODUCTS_IMAGE}"></td> </tr> <!-- more images --> <tr><img src="{$PRODUCTS_IMAGE_1}"> </tr> <tr> <a href="http://www.schnapp2000.de/xtc/templates/Base.Black/module/product_info/%7B$PRODUCTS_POPUP_LINK_2%7D"><img src="%7B$PRODUCTS_IMAGE_2%7D"></a> </tr> <tr> <a href="http://www.schnapp2000.de/xtc/templates/Base.Black/module/product_info/%7B$PRODUCTS_POPUP_LINK_3%7D"><img src="%7B$PRODUCTS_IMAGE_3%7D"></a> </tr> </tbody></table> <br>{if $PRODUCTS_IMAGE_LINK!=''}<a href="http://www.schnapp2000.de/xtc/templates/Base.Black/module/product_info/%7B$PRODUCTS_IMAGE_LINK%7D" onclick="window.open(this.href); return false;">{$PRODUCTS_TEXT_ZOOM}</a><br>{/if} {if $PRODUCTS_FSK18=='true'} <br> <img src="%7B$tpl_path%7Dimg/fsk18.gif" alt=""> {/if} {if $MODULE_graduated_price !=''} {$MODULE_graduated_price}<br> <br><br>{/if} </td> </tr> </tbody></table></td> <td class="main" valign="top">{if $PRODUCTS_DESCRIPTION !=''}{$PRODUCTS_DESCRIPTION}{/if} {if $MODULE_product_options !=''}{$MODULE_product_options}<br>{/if} <table border="0" width="300"> <tbody><tr> <td class="main" valign="middle"><table border="0" width="100"> <tbody><tr> <td>{$ADD_QTY}</td> <td>{$ADD_CART_BUTTON}</td> </tr></tbody></table></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> {if $PRODUCTS_URL != ''} <table class="boxTextBG" border="0" width="100%"> <tbody><tr> <td align="center">{$PRODUCTS_URL}<br></td> </tr> </tbody></table>{/if} {if $PRODUCTS_DATE_AVIABLE != ''} <table class="boxTextBG" border="0" width="100%"> <tbody><tr> <td align="center">{$PRODUCTS_DATE_AVIABLE}<br></td> </tr> </tbody></table>{/if} {if $PRODUCTS_ADDED != ''} <table class="boxTextBG" border="0" width="100%"> <tbody><tr> <td align="center">{$PRODUCTS_ADDED}<br></td> </tr> </tbody></table>{/if} {if $MODULE_products_reviews != ''} <table border="0" width="100%"> <tbody><tr> <td>{$MODULE_products_reviews}<br></td> </tr> </tbody></table>{/if} {if $MODULE_products_media != ''} <table border="0" width="100%"> <tbody><tr> <td align="center">{$MODULE_products_media}<br></td> </tr> </tbody></table> {/if} {if $MODULE_cross_selling != ''} <table border="0" width="100%"> <tbody><tr> <td align="center">{$MODULE_cross_selling}<br></td> </tr> </tbody></table> {/if} {if $MODULE_reverse_cross_selling != ''} <table border="0" width="100%"> <tbody><tr> <td align="center">{$MODULE_reverse_cross_selling}<br></td> </tr> </tbody></table> {/if}{if $MODULE_also_purchased != ''} <table border="0" width="100%"> <tbody><tr> <td align="center">{$MODULE_also_purchased}<br></td> </tr> </tbody></table>{/if} {$FORM_END} </body></html> Link to comment Share on other sites More sharing options...
Schnapp2000 Posted January 7, 2008 Author Report Share Posted January 7, 2008 Nach mehrstündigem Googeln bin ich nun ziemlich sicher, dass mein Template bezüglich der Bildanzeige so stimmt: <td align="center" width="160"> {if $PRODUCTS_IMAGE!=''} {/if} {if $PRODUCTS_IMAGE_1 != ''} {/if} {if $PRODUCTS_IMAGE_2 != ''} {/if} {if $PRODUCTS_IMAGE_3 != ''} {/if} <!-- more images eof --> <table border="0" cellpadding="8" cellspacing="4" width="1"> <tbody><tr> <td><img src="{$PRODUCTS_IMAGE}"alt="Leider kein Bild..."></td> </tr> In allen Ordnern (original_images, info_images, popup_images, thumbnail_images) ist das Bild korrekt erzeugt worden. Und trotzdem wird nur der Alternativtext und nicht das Bild angezeigt. Oder kann irgendwas in der Datenbank falsch sein? Ich habe mal Screenshots von "products" und "products_images" gemacht; vielleicht fällt da jemandem was auf, das nicht stimmt? http://www.schnapp2000.de/products.jpg http://www.schnapp2000.de/products_image.jpg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.