Jeannie Posted January 11, 2007 Report Share Posted January 11, 2007 ich hätte gerne mein "Product Listing" 2 spaltig. Im Moment sieht es so aus : {config_load file="$language/lang_$language.conf" section="index"} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td class="contentsTopics">{$CATEGORIES_NAME}</td> <td align="right"> </td> </tr> <tr valign="top"> <td class="contentsTopics">{$CATEGORIES_HEADING_TITLE}</td> <td align="right"> </td> </tr> </table> {if $CATEGORIES_DESCRIPTION}<br /> {$CATEGORIES_DESCRIPTION}{/if}<br />{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}" alt="{$CATEGORIES_NAME}" /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="border-bottom: 1px solid; border-color: #000000;"> </td> </tr> </table> {/if} {if $MANUFACTURER_DROPDOWN}<br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="main" align="right"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="main" align="right">{#text_show#} </td> <td class="main" align="right">{$MANUFACTURER_DROPDOWN}</td> </tr> </table> </td> </tr> </table> <br /> {/if} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-top: 2px solid; border-color: #d4d4d4;"> {foreach name=aussen item=module_data from=$module_content} <tr> <td rowspan="2" style="border-bottom: 1px solid; border-color: #cccccc;"> {if $module_data.PRODUCTS_IMAGE!=''}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.PRODUCTS_NAME}" /></a>{/if} {if $module_data.PRODUCTS_FSK18=='true'}<br /><img src="{$tpl_path}img/fsk18.gif" alt="" />{/if}</td> <td align="left" class="main"><a href="{$module_data.PRODUCTS_LINK}"><strong>{$module_data.PRODUCTS_NAME}</strong></a></td> </tr><tr> <td align="left" class="main" style="border-bottom: 1px solid; border-color: #cccccc;">{$module_data.PRODUCTS_SHORT_DESCRIPTION} <br /> <br /> <br /> <br /> <strong>{$module_data.PRODUCTS_PRICE} <br /> </strong> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="left"><table width="200" border="0"> <tr> <td align="left">{if $module_data.SHIPPING_NAME} <table width="250" border="0" cellpadding="0" cellspacing="0"> <tr valign="left"> <td class="main">{#text_shippingtime#}{$module_data.SHIPPING_NAME}</td> </tr> </table> {/if} {$module_data.BUTTON_BUY_NOW}</td> </tr> </table></td> </tr> </table> </td> </tr> {/foreach} </table> </td> </tr> </table> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>{$NAVIGATION}</td> </tr> </table> Bin schon den ganzen Tag am tüffteln, aber meine Kenntnisse reichen doch nicht so weit Wer ist bereit mir zu helfen ?? Gruß Jeannie Link to comment Share on other sites More sharing options...
Vio Posted January 11, 2007 Report Share Posted January 11, 2007 Hallo Jeannie Kannst Du das mal genauer beschreiben? Was willst Du genau in 2 Spalten getrennt haben? Grüße Vio Link to comment Share on other sites More sharing options...
Jeannie Posted January 11, 2007 Author Report Share Posted January 11, 2007 hi Vio, meine Artikel werden momentan untereinander angezeigt, ich hätte sie halt gerne in 2 Spalten . Hoffe du verstehst was ich meine ! Gruß Jeanie Link to comment Share on other sites More sharing options...
dukie6666 Posted January 11, 2007 Report Share Posted January 11, 2007 schau dir die datei new_produkts an, und baue diese analog auf, dann musst du nur noch hier deine spalten zahl eingeben: if ($col>=1) Link to comment Share on other sites More sharing options...
Vio Posted January 11, 2007 Report Share Posted January 11, 2007 Hallo meine ist 2spaltig. Hier ist die Datei. Sichere aber Deine auf alle Fälle! Tabellenbreite ect. musst Du evt. noch anpassen! Dies ist allerdings 304 SP21. Ich weiß nicht, welche Shopversion Du benutzt. Grüße Vio {config_load file="$language/lang_$language.conf" section="index"} <br /> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"><h1>{$CATEGORIES_NAME}</h1></td> <td align="right">{if $MANUFACTURER_DROPDOWN}{#text_show#} {$MANUFACTURER_DROPDOWN}{/if}</td> </tr> </table> <br /> {if $CATEGORIES_DESCRIPTION}<br /> {$CATEGORIES_DESCRIPTION}<br /><br />{/if} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} <td align="left" valign="top" width="33%" > <table height="100" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> {php} if ($col==1) { echo ' <td rowspan="4"> </td> '; } {/php} </tr> <tr> <td align="center" valign="top"> <table width="98%" height="100" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid; border-color: #d4d4d4;padding:3px;margin:2px;"> <tr> <td width="50" rowspan="2" align="center" valign="center" style="padding-right:6px;">{if $module_data.PRODUCTS_IMAGE!=''} <a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" /></a> {/if} {if $module_data.PRODUCTS_FSK18=='true'}<br /> <img src="{$tpl_path}img/fsk18.gif" alt="" />{/if}</td> <td width="200" align="left" bgcolor="#F1F1F1" style="padding-left:6px;"><a href="{$module_data.PRODUCTS_LINK}"><strong>{$module_data.PRODUCTS_NAME}</strong></a></td> </tr> <tr> <td width="200" align="left" valign="middle" bgcolor="#F1F1F1" style="padding-left:6px;"> <a href="{$module_data.PRODUCTS_LINK}"><strong>Details...</strong></a><br /> <div class="price">{$module_data.PRODUCTS_PRICE}</div> {$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK} {if $module_data.PRODUCTS_VPE}<br />{$module_data.PRODUCTS_VPE}{/if}{$module_data.PRODUCTS_BUTTON_BUY_NOW}</td> </tr> </table> </td> </tr> </table> </td> {php} if ($col>=2) { $col=0; echo '</tr><tr>'; } {/php} {/foreach} </tr> </table> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>{$NAVIGATION}</td> </tr> </table> Link to comment Share on other sites More sharing options...
Jeannie Posted January 11, 2007 Author Report Share Posted January 11, 2007 es funzt mit beiden Vorschlägen nicht !! :( Trozdem vielen Dank !! Benutze Version 3.03 Bekomme jedesmal folgende Fehlermeldungen !! Fatal error: Smarty error: [in test2/module/product_listing/product_listing_v1.html line 29]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2231) in /var/www/vhosts/meine domain.de/httpdocs/xtcommerce/includes/classes/Smarty_2.6.6/Smarty.class.php on line 1088 <html> <head> <title>.</title> </head> <body> {config_load file="$language/lang_$language.conf" section="index"} <br> <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> <tbody> <tr> <td align="left"> <h3> {$CATEGORIES_NAME}</h3> </td> <td align="right">{if $MANUFACTURER_DROPDOWN}{#text_show#} {$MANUFACTURER_DROPDOWN}{/if}</td> </tr> </tbody> </table> {$CATEGORIES_HEADING_TITLE}<br> <br> {/if} <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} <td align="left" valign="top" width="33%"> <table border="0" cellpadding="0" cellspacing="0" height="100" width="100%"> <tbody> <tr> {php} if ($col==1) { echo ' <td rowspan="4"> </td> '; } {/php} </tr> <tr> <td align="center" valign="top"> <table style="border: 1px solid rgb(212, 212, 212); margin: 2px; padding: 3px;" border="0" cellpadding="0" cellspacing="0" height="100" width="98%"> <tbody> <tr> <td rowspan="2" style="padding-right: 6px;" align="center" valign="center" width="50">{if $module_data.PRODUCTS_IMAGE!=''} <a href="%7B$module_data.PRODUCTS_LINK%7D"><img src="%7B$module_data.PRODUCTS_IMAGE%7D"></a> {/if} {if $module_data.PRODUCTS_FSK18=='true'}<br> <img src="%7B$tpl_path%7Dimg/fsk18.gif" alt="">{/if}</td> <td style="padding-left: 6px;" align="left" bgcolor="#f1f1f1" width="200"><a href="%7B$module_data.PRODUCTS_LINK%7D"><strong></strong><strong></strong></a><strong><a href="file:///D:/xtcommerce/xtCommerce_v3.0.3/xtCommerce/templates/test2/module/product_listing/%7B$module_data.PRODUCTS_LINK%7D">{$module_data.PRODUCTS_NAME}</a></strong></td> </tr> <tr> <td style="padding-left: 6px;" align="left" bgcolor="#f1f1f1" valign="middle" width="200"> <a href="%7B$module_data.PRODUCTS_LINK%7D">{$module_data.PRODUCTS_DESCRIPTION}<br> <strong>{$module_data.PRODUCTS_PRICE}<br> </strong>{$module_data.BUTTON_BUY_NOW}</a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> {php} if ($col>=2) { $col=0; echo '</tr> <tr> '; } {/php} {/foreach} </tr> </tbody> </table> <br> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td>{$NAVIGATION}</td> </tr> </tbody> </table> </body> </html> Ich glaube ich gebe es dran !!! Gruß Jeannie Link to comment Share on other sites More sharing options...
Vio Posted January 12, 2007 Report Share Posted January 12, 2007 Hallo, die Fehlermeldung besagt, dass Du noch eine ältere Smarty-Version hast. Die wurde mit dem Update von 304SP1 auf 304 SP21 geändert. Hier ist mal die Version von 304 Sp1: <td width="50%" style="border-right: 1px solid; border-color: #cccccc;" valign="top" align="center"> <table width="1" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <table width="1" border="0" cellpadding="5" cellspacing="0"> <tr> <td align="left">{if $PRODUCTS_IMAGE!=''}<a href="{$PRODUCTS_POPUP_LINK}"><img src="{$PRODUCTS_IMAGE}" alt="{$PRODUCTS_NAME}" /><br><img src="{$tpl_path}img/zoom.gif"></a>{/if}</td> </tr> <!-- more images --> {if $PRODUCTS_IMAGE_1 != ''} <tr> <td align="left" style="border-top: 1px solid; border-color: #cccccc;"> <a href="{$PRODUCTS_POPUP_LINK_1}"><img src="{$PRODUCTS_IMAGE_1}" alt="{$PRODUCTS_NAME}" /><br><img src="{$tpl_path}img/zoom.gif"></a> </td> </tr> {/if} {if $PRODUCTS_IMAGE_2 != ''} <tr> <td style="border-top: 1px solid; border-color: #cccccc;"> <a href="{$PRODUCTS_POPUP_LINK_2}"><img src="{$PRODUCTS_IMAGE_2}" alt="{$PRODUCTS_NAME}" /><br><img src="{$tpl_path}img/zoom.gif"></a> </td> </tr> {/if} {if $PRODUCTS_IMAGE_3 != ''} <tr> <td style="border-top: 1px solid; border-color: #cccccc;"> <a href="{$PRODUCTS_POPUP_LINK_3}"><img src="{$PRODUCTS_IMAGE_3}" alt="{$PRODUCTS_NAME}" /><br><img src="{$tpl_path}img/zoom.gif"></a> </td> </tr> {/if} <!-- more images eof --> </table> Frage zum Produkt {$ASK_PRODUCT_QUESTION}<br />{if $PRODUCTS_IMAGE_LINK!=''}<a href="{$PRODUCTS_IMAGE_LINK}" onclick="window.open(this.href); return false;">{$PRODUCTS_TEXT_ZOOM}</a><br />{/if} {if $PRODUCTS_FSK18=='true'} <br /> <img src="{$tpl_path}img/fsk18.gif" alt="" /> {/if} {if $MODULE_graduated_price !=''} {$MODULE_graduated_price}<br /> <br /> <br /> {/if} </td> </tr> </table></td> Link to comment Share on other sites More sharing options...
Jeannie Posted January 12, 2007 Author Report Share Posted January 12, 2007 hoffe ich bin nicht lästig .... Aber bist du sicher dass der code vollständig ist ?? ich bekomme nichts angezeigt Aber auch keine Fehlermeldung !! Gruß Jeannie Link to comment Share on other sites More sharing options...
Vio Posted January 12, 2007 Report Share Posted January 12, 2007 War nicht vollständig, tut mir leid... {config_load file="$language/lang_$language.conf" section="index"} <br /> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"><h1>{$CATEGORIES_NAME}</h1></td> <td align="right">{if $MANUFACTURER_DROPDOWN}{#text_show#} {$MANUFACTURER_DROPDOWN}{/if}</td> </tr> </table> <br /> {if $CATEGORIES_DESCRIPTION}<br /> {$CATEGORIES_DESCRIPTION}<br /><br />{/if} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} <td align="left" valign="top" width="33%" > <table height="100" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> {php} if ($col==1) { echo ' <td rowspan="4"> </td> '; } {/php} </tr> <tr> <td align="center" valign="top"> <table width="98%" height="100" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid; border-color: #d4d4d4;padding:3px;margin:2px;"> <tr> <td width="50" rowspan="2" align="center" valign="center" style="padding-right:6px;">{if $module_data.PRODUCTS_IMAGE!=''} <a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" /></a> {/if} {if $module_data.PRODUCTS_FSK18=='true'}<br /> <img src="{$tpl_path}img/fsk18.gif" alt="" />{/if}</td> <td width="200" align="left" bgcolor="#F1F1F1" style="padding-left:6px;"><a href="{$module_data.PRODUCTS_LINK}"><strong>{$module_data.PRODUCTS_NAME}</strong></a></td> </tr> <tr> <td width="200" align="left" valign="middle" bgcolor="#F1F1F1" style="padding-left:6px;"> <a href="{$module_data.PRODUCTS_LINK}"><strong>Details...</strong></a><br /> <div class="price">{$module_data.PRODUCTS_PRICE}</div> {$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK} {if $module_data.PRODUCTS_VPE}{$module_data.PRODUCTS_VPE}{/if} {$module_data.BUTTON_BUY_NOW}</td> </tr> </table> </td> </tr> </table> </td> {php} if ($col>=2) { $col=0; echo '</tr><tr>'; } {/php} {/foreach} </tr> </table> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>{$NAVIGATION}</td> </tr> </table> Link to comment Share on other sites More sharing options...
Jeannie Posted January 12, 2007 Author Report Share Posted January 12, 2007 es soll wohl nicht sein !!! Fatal error: Smarty error: [in test2/module/product_listing/product_listing_v1.html line 49]: syntax error: invalid attribute name: 'le_data.PRODUCTS_NAME' (Smarty_Compiler.class.php, line 1510) in /var/www/vhosts/meine-domain.de/httpdocs/xtcommerce/includes/classes/Smarty_2.6.6/Smarty.class.php on line 1088 ich gebe auf Vielen vielen Dank für deine Mühe !!! Gruß Jeannie Link to comment Share on other sites More sharing options...
John Steed Posted January 12, 2007 Report Share Posted January 12, 2007 Jetzt nicht aufgeben! Das ist ein popeliger Zeilenumbruch, der durch die Darstellung hier im Forum entstanden ist (Vio als alter Hase hat keinen Code-Block benutzt ) und da nicht hingehört. Such in dem Code mal nach {$modu le_data.PRODUCTS_NAME}</strong></a></td> und mach am Anfang das Leerzeichen weg... {$module_data.PRODUCTS_NAME}</strong></a></td>[/code] Cheers, J Link to comment Share on other sites More sharing options...
Vio Posted January 12, 2007 Report Share Posted January 12, 2007 Vio als alter Hase[/CODE] Danke fürs Kompliment?! (für alt oder Hase?) Und für den Hinweis mit dem Codeblock einfügen. Grüße Vio Link to comment Share on other sites More sharing options...
John Steed Posted January 12, 2007 Report Share Posted January 12, 2007 für alt oder Hase Was Dir lieber ist weiser Magier Cheers, J Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.