cartman2k Posted August 25, 2004 Report Share Posted August 25, 2004 So ich hab ein Problem. Wie kann ich immer zwei Produkte nebeneinander stellen? H?ng schon l?nger dran m?sste doch auch wie in der categorie_listing.html funktionieren mit dem {php} $col++; {/php} ... {php} if ($col>=1) { $col=0; [code] Bitte helft mir! Link to comment Share on other sites More sharing options...
dukie6666 Posted August 25, 2004 Report Share Posted August 25, 2004 hier habe ich f?r meinen shop die angepasste produktlisting 2 spaltig, sie kann aber durch ver?ndern von {php} if ($col>=2) { $col=0; in 3 oder 4 spaltig abge?ndert werden. {config_load file="$language/lang_$language.conf" section="index"} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="red" size="4">{$CATEGORIES_NAME}</font></strong> </font></td> <td align="right"></td> </tr> </table> {if $CATEGORIES_DESCRIPTION} <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <br> {$CATEGORIES_DESCRIPTION}</font> <br>{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}">{/if} <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"><div align="right">{#text_show#} {$MANUFACTURER_DROPDOWN}</div></td> </tr> </table> <br> {/if} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="infoBoxHeading">{#heading_text#} </td> </tr> </table> <br> <br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} <td class="main" align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="4" align="center"> <tr align="center"> <td align="center" >{if $module_data.PRODUCTS_IMAGE}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" border="0"></a>{/if} </td> </tr> <tr> <td class="main" align="center"><strong> <a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}</a></strong></td> </tr> <tr> <td class="main" align="center" ><strong>{$module_data.PRODUCTS_PRICE}<br> </strong>{$module_data.BUTTON_BUY_NOW}</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> {if $result=='false'} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td style="border: 1px solid; border-color: #ff0000;" bgcolor="#FFCCCC"><div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">{#text_noproduct#}</font></strong></div></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"><br> {$BUTTON}</td> </tr> </table> {/if} Link to comment Share on other sites More sharing options...
eaze Posted August 25, 2004 Report Share Posted August 25, 2004 vielen dank! bei mir l?uft's. Link to comment Share on other sites More sharing options...
maxx2004 Posted August 26, 2004 Report Share Posted August 26, 2004 uupps, bei mir l?ufts leider nicht Parse error: parse error in /home/www/netshxx/html/xtshop/templates_c/%%180^%%1801223840^product_listing_v1.html.php on line 72 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.