|
|||
|
Hallo,
habe in die product_listing1.html folgenden Code aber es wird nur eine Spalte angezeigt was habe ich übersehen?wenn ich foreach höher setze bzw. tr davor und unten entsprechend hinter foreach, dann ist die Tabelle total durcheinander: Code:
{config_load file="$language/lang_$language.conf" section="index"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="100%" height="22px" border="0">
<tr height="22px">
<td valign="middle"class="contentsTopics" style="border:none; background-color:#eaeaea"> {if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}" width="22px" height="20px"align=absmiddle style="margin-top:2px;margin-bottom:2px" alt="{$CATEGORIES_NAME}" />{/if} <strong> {$CATEGORIES_NAME}</strong></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="border-bottom: 1px solid; border-color: #cccccc;"> </td>
</tr>
</table>
{if $MANUFACTURER_DROPDOWN}
<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>
{/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: 0px solid; border-color: #d4d4d4;">
{foreach name=aussen item=module_data from=$module_content}
{php}
$col++;
{/php}
<tr>
<td width="175" rowspan="2" valign="top" style="border-bottom: 1px solid; border-left: 1px solid; border-color: #cccccc;"> {if $module_data.PRODUCTS_IMAGE!=''}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" style="margin-top: 5px" 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" colspan="2" style="border-right: 1px solid; border-color: #cccccc;"><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|truncate:100:"...":true}
<br />
<strong>{$module_data.PRODUCTS_PRICE} </strong><br />
<font face="Verdana, Arial, Helvetica, sans-serif" size="1">{$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK}</font>
{if $module_data.PRODUCTS_VPE}<br />{$module_data.PRODUCTS_VPE}{/if}
</td><td class="main" style="border-bottom: 1px solid; border-right: 1px solid; border-color: #cccccc;"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><table width="140" border="0" cellpadding="5">
<tr>
<td align="center">{#text_shippingtime#}{if $module_data.PRODUCTS_SHIPPING_NAME}
<img src="{$module_data.PRODUCTS_SHIPPING_IMAGE}" alt="{$module_data.PRODUCTS_SHIPPING_NAME}" /><br />{/if}
{$module_data.PRODUCTS_BUTTON_BUY_NOW}</td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
{php}
if ($col>=3) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach}
</table>
</td>
</tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>{$NAVIGATION}</td>
</tr>
</table>
Geändert von 0etzi (06.10.2008 um 12:59 Uhr) |
|
|||
|
Guten Abend, und vielen Dank an die Leute die sich bemühen den anderen zu helfen. Habe schon sehr viele Antworten auf meine Fragen hier gefunden.
ich habe auch eine Frage. das mit der Anzahl der Spalten Funktioniert wunderbaraber aber maximal 2 Spalten liegt das an dem Template? ( bei new_product kann ich merkwürdigerweise xbeliebige anzahl der Spalten eingeben) Wie kann ich den Beschreibungstext auf eine bestimmte Anzahl der Symbole einschrenken oder die Höhe der Spalte (ist am sinnvollsten) verstellen kann?. den wenn die Spalten soooo hoch sind wie der ganze Text sieht es schrecklich aus. Vielen Dank im Voraus! Geändert von xxxpirat (09.10.2008 um 01:04 Uhr) |
|
|||
|
Bei mir funktioniert das mit den zwei Spalten leider auch nicht.
Ich habe lediglich die Anpassungen gemacht welche hier besprochen wurden. Alles in der Originaldatei, also sonst wurde gar nichts verändert. Aber es läuft nicht, die Artikel werden immer noch in einer Spalte angezeigt. Hier mein Code, was ist daran nicht korrekt? Code:
{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}
{php} $col++;
{/php}
<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 />
<strong>{$module_data.PRODUCTS_PRICE} </strong><br />
{$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK}
{if $module_data.PRODUCTS_VPE}{$module_data.PRODUCTS_VPE}{/if}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><table width="200" border="0">
<tr>
<td align="right">{if $module_data.SHIPPING_NAME}
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr valign="middle">
<td class="main">{#text_shippingtime#}</td>
{if $module_data.SHIPPING_IMAGE}
<td><img src="{$module_data.SHIPPING_IMAGE}" alt="{$module_data.SHIPPING_NAME}" /></td>
{/if}
<td class="main">{$module_data.SHIPPING_NAME}</td>
</tr>
</table>
{/if}
{$module_data.BUTTON_BUY_NOW}</td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
{php}
if ($col>=2) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach}
</table>
</td>
</tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>{$NAVIGATION}</td>
</tr>
</table>
|
|
|||
|
Für Höhe der Spalte gibst du deinem td eine Klasse und sprichst es dann in der css mit td."Klassenname" direkt an.
|
|
|||
|
Hab mir jetzt zwar nicht alles ganz genau durchgelesen. Aber ich denke du solltest mal deine <tr>'s überprüfen.
Weil du in der Schleife soviele <tr>'s hast das du vielleicht den Umbruch den deine Schleife macht garnicht mehr mitkriegst? Deine Schleife ist korrekt! |
|
|||
|
habe das gleiche problem. mit den hier geposteten codes kriege ich allerdings immer smarty fehler. liegt das evtl. am template?
Hip Hop Klamotten, Kleidung Shop, Streetwear - online kaufen bei Gentlemens-Club.de <-- um den shop geht es |
|
|||
|
Zitat:
Hi Gafo, ich glaube in Deinem Shop stimmt wohl was nicht so ganz: ![]() Gruß, Bodo |
![]() |
| Lesezeichen |
| Stichworte |
| ändern, auflistung, produkt |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Produkt verlinken | m2pdesign2 | Admininterface | 7 | 07.07.2008 22:29 |
| xtc v2_0_rc_1_2 Gast warenkorb produkt ist weg | jan2 | Shopbereich | 0 | 08.11.2005 20:07 |
| 2 Warenbest?nde, 1 Produkt ? | Charon | Installation und Konfiguration | 1 | 26.02.2004 18:09 |