|
|||
|
Hallo,
kann mir jemand einen Tipp geben, wie ich in der Produktauflistung die Artikel nebeneinander anordnen kann, anstatt untereinander. Ich habe schon das Product_Listing Template bearbeitet, jedoch ohne einschl?gigen Erfolg. Ich bin f?r jeden Ratschlag dankbar. |
|
|||
|
Hi,
meiner Meinung nach mu?t du die Tabelle von der product_listing_v1.html etwas umstellen damit die Artikel nebeneinander aufgelistet werden. Schau dir doch einmal die von categorie_listing_.html an oder kopiere sie und tausche die relevanten Daten f?r die Produktliste aus. M?ste ja funktionieren. Denn die Kategoreien werden ja nebeneinander gelistet. Aber speichere die original product_listing vorher, falls es doch nicht funktioniert! Gru? TiKla |
|
|||
|
Danke Tikla.
Ich habe die 'new_products.html' kopiert und modifiziert und in die "product_listing.html' eingebaut. Der entscheidende PHP Code darin war folgender: {foreach name=aussen item=module_data from=$module_content} {php} $col++; {/php} [Tabelle] {php} if ($col>=2) { $col=0; echo '</tr><tr>'; } {/php} {/foreach} In der Zeile if ($col>=2) { kann die Anzahl Spalten eingestellt werden. |
|
|||
|
Hallo
ich habe das bei mir auch versucht, die Produktauflistng zweispaltig darzustellen und bin (denke ich mal) so vorgegangen wie hier beschrieben. Leider wird weiterhin alles einspaltig angezeigt. Habe ich vielleicht die entscheidenden codes an den falschen Stellen eingef?gt oder fehlt noch was ? Code:
<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}
? ? ? ? ? ? ?<br />
? ? ? ? ? ? ?</strong>
? ? ? ? ? ? ?<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>
Vielen Dank Rosemarie Morweiser |
|
|||
|
Ich hatte ein ?hnlichens Problem.....
schua mal hier! http://www.xt-commerce.com/modules/ipboard...post-15604.html Hat mir geholfen. Gru? Andreas |
|
|||
|
ich habe es eben mal ?berflogen und denke, du solltest anstelle von
Code:
<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>
Code:
<tr>
<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}
st: )
|
![]() |
| Lesezeichen |
| Stichworte |
| nebeneinander, produktauflistung |
| Themen-Optionen | |
| Ansicht | |
|
|