|
|||
|
Hallo.
Wie schon im titel erw?hnt w?rde ich gerne wissen, wie man die Product?bersicht nicht einspaltig, wie es standard ist, sonst mehrspaltig macht. ich wei? dass man in einer .php datei cols 1 durch cols 2 erstzen muss, aber ich wei? leider nicht mehr welche datei. kann mir einer helfen. danke ! |
|
||||
|
du musst die foreach schleife in die product_listing.html einbauen, analog zur z.b. new_products.html.
gibt einige threads dar?ber, bitte suche nutzen.
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint. .:netzdesign33.de:. | .:blog33.de:. |
|
|||
|
Zitat:
und werden in der news_products.html die artikel 2-spaltig dargestellt ? oder warum soll ich mich an der orientieren ? |
|
|||
|
jo ich habe es probiert, leider ohne effekt. vielleicht habe ich ja was falsch gemacht.
schaut euch das doch bitte mal an Code:
{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="#666666" 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}
{/if}
{ if $MANUFACTURER_DROPDOWN}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main"><div align="right">{#text_show#} {$MANUFACTURER_DROPDOWN}</div></td>
</tr>
</table>
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
{foreach name=aussen item=module_data from=$module_content}
{php} $col++;
{/php}
<tr>
<td> <div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td colspan="3"></td>
</tr>
<tr bgcolor="#d2e6ba">
<td colspan="2" class="main">
<strong><a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}</a></strong>
</td><td align="right" class="main">
<b>{$module_data.PRODUCTS_PRICE}</b>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="1" valign="top" rowspan="3">
{if $module_data.PRODUCTS_IMAGE!=''}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" border="0"></a>{/if}
</td><td style="border-right:0px #b0b0b0 solid;" valign="top" colspan="2" class="main">
{$module_data.PRODUCTS_SHORT_DESCRIPTION}
</td>
</tr>
<tr>
<td style="border-right:0px #b0b0b0 solid;" colspan="3"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#d2e6ba">
<td>{if $module_data.SHIPPING_NAME}
<table width="100" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td width="50" class="main">{#text_shippingtime#}</td>
{if $module_data.SHIPPING_IMAGE}
<td width="50"><img src="{$module_data.SHIPPING_IMAGE}"></td>
{/if}
<td nowrap class="main">{$module_data.SHIPPING_NAME}</td>
</tr>
</table>
{/if}</td>
<td align="right">{$module_data.BUTTON_BUY_NOW}</td>
</td>
</tr>
</table>
</div></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}
|
|
||||
|
fast richtig
hast nur den beginn der foreach-schleife falsch gesetzt, die geh?rt hinter das <tr>, also Code:
table width="100%" border="0" cellspacing="0" cellpadding="0">
{foreach name=aussen item=module_data from=$module_content}
{php} $col++;
{/php}
<tr>
<td> <div align="center">
Code:
table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
{foreach name=aussen item=module_data from=$module_content}
{php} $col++;
{/php}
<td> <div align="center">
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint. .:netzdesign33.de:. | .:blog33.de:. |
![]() |
| Lesezeichen |
| Stichworte |
| mehrspaltige, produtctlisting |
| Themen-Optionen | |
| Ansicht | |
|
|