Ja, ich weiß, dass es sich um eine "olle Klamotte" handelt und die Code-Schnippsel über die Suchfunktion gefunden werden können - doch irgendwas klappt nicht wunschgemäß...
Shopversion
3.04 SP2
modifiziertes Standardtemplate, alle Boxen stehen links + CSS Änderungen
Ziel
Die produkt_listing.html soll im oberen Bereich den kategorie-namen sowie die kategorie-Überschrift darstellen. Darunter ein großes Aufmacherbild (Kategorie Bild).
Die dann folgenden Produkte sollen nicht untereinander, sondern mehrspaltig dargestellt werden.
gemacht habe ich:
In der Suchfunktion Code-Schnippsel gefunden
Code:
{foreach}...
if ($col>=4) {
$col=0;
echo '</tr>';
}
{/php}
{/foreach}
usw.
Resultat
Die Produkte werden wunschgemäß vierspaltig angezeigt. Soweit alles wunderbar.
Leider steht diese vierspaltige Tabelle nicht unter dem Kategorie Bild, sondern rechts daneben.

Das sieht nicht nur unmöglich aus, es zerschießt natürlich das gesamte Layout.
Darf ich Euch bitten, einmal über meinen Code schauen, wo ich (unfreiwillig) das Osterei versteckt habe?
Der gesamte Code meiner product_listing.html ist:
Code:
{config_load file="$language/lang_$language.conf" section="index"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td colspan="2"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="red" size="4">{$CATEGORIES_NAME}</font></strong> </font></td>
</tr>
<tr valign="top">
<td valign="top">{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}">{/if}
</td>
<td align="right" valign="top">
<div align="left">
{if $CATEGORIES_DESCRIPTION} <font size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
{$CATEGORIES_DESCRIPTION}</font></div>
</td>
</tr>
</table>
<br>
<p>
{/if}
{ if $MANUFACTURER_DROPDOWN} <br>
</p>
<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}
<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="produktbeschreibung_bild2" align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="4" align="center">
<tr align="center" height="150">
<td align="center" valign="bottom" height="150" >{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" valign="top"><strong>
<a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}<br>
</a><a class="roter_preis">{$module_data.PRODUCTS_PRICE}</a><br>
</strong>{$module_data.PRODUCTS_BUTTON_BUY_NOW}</td>
</tr>
</table></td>
{php}
if ($col>=4) {
$col=0;
echo '</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}
Ratlose Grüße,
Sonja