|
|||
|
Die hab ich ja gefunden, doch was muss ich dort ?ndern? Ich m?chte erreichen, dass ich ca. 3 Produkte nebeneinander platzieren kann und ein gemeinsamer Rahmen um alle Produkte gelegt wird.
K?nntest du mir kurz ein Beispiel geben, wo ich wass ?ndern muss? Danke und Gruss Patrik |
|
|||
|
Hier noch meine xsell.html
{config_load file="$language/lang_$language.conf" section="xsell"} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="infoBoxHeading">{#heading_text#} </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <div align="center"> <table width="100%" border="0"> {foreach name=aussen item=module_data from=$module_content} <tr> <td width="1" rowspan="2" style="border-bottom: 1px solid; border-color: #cccccc;">{if $module_data.XSELL_IMAGE!=''}{$module_data.XSELL_IMAGE}{/if} {if ($module_data.XSELL_FSK18==1) AND ($module_data.XSELL_CUSTOMERS_FSK18 == 0)} [img]{$tpl_path}img/fsk18.gif[/img] {/if} </td> <td class="main">{$module_data.XSELL_NAME}<div align="center"></div></td> </tr> <tr> <td style="border-bottom: 1px solid; border-color: #cccccc;" class="main">{$module_data.XSELL_SHORT_DESCRIPTION } {if $module_data.XSELL_CUSTOMERS_SHOW_PRICE != 0} {$module_data.XSELL_PRICE} {/if} <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right"><table width="100" border="0"> <tr> <td>{$module_data.XSELL_BUY_NOW}</td> </tr> </table></td> </tr> </table> </td> </tr> {/foreach} </table> </div></td> </tr> </table> |
|
|||
|
Tja, es scheint als w?re ich zu bl?d f?r dies! Hab zwar " {php} $col++;
{/php}" in meine xsell kopiert, doch alles blieb wie bisher. Leider bin ich nicht sehr begabt in html! Heul! Es ist mir zwar etwas peinlich, doch was m?sste ich genau ver?ndern damit ich das erreiche. Sorry f?r die fragerei. |
|
|||
|
Ok, ich nochmal. Ich habe mich nun Stunden (gestern 5 und heute 4) damit besch?ftigt die Produkteanordnung so hinzukriegen wie ich oben beschrieben habe. Ich habs nun geschafft, dass 3 Produkte horizontal nebeneinander plaziert sind. Nur ein kleines Detail will mir einfach nicht gelingen. Da jedes Produkt in einer eigenen Zelle ist, habe ich nun 3 eingerahmte Produkte nebeneinander. In der Stylesheet.css habe ich probiert den Rahmen nur aussen zu definieren, indem ich eine neue class er?ffnet habe und diesen mit padding-left: 1px; und padding-right: 1px; definiert habe. Leider werden mir dann keine Linien mehr angezeigt.
Wie ihr seht, habe ich mich nun wirklich bem?ht das ganze selber herauszufinden. Nun nach 9 Stunden bin ich zwar einiges schlauer (ich weiss nun was es mit class auf sich hat) doch dieses Problem will mir einfach nicht gelingen. Hier noch mein gebastel in der xsell.html Code:
{config_load file="$language/lang_$language.conf" section="xsell"}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="infoBoxHeading">{#heading_text#} </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
{foreach name=aussen item=module_data from=$module_content}
{php} $col++;
{/php}
<td class="xsell" width="30%">
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td align="center" ><strong><a href="{$module_data.XSELL_LINK}">{$module_data.XSELL_NAME}<div align="center"></div></a></strong></td>
</tr>
<tr>
<td align="center" >{if $module_data.XSELL_IMAGE!=''}<a href="{$module_data.XSELL_LINK}">{$module_data.XSELL_IMAGE}</a>{/if}
{if ($module_data.XSELL_FSK18==1) AND ($module_data.XSELL_CUSTOMERS_FSK18 == 0)}
<br>
<img src="{$tpl_path}img/fsk18.gif">
{/if}
<br />
</td>
</tr>
<tr>
<td align="center" >
<strong><font size="0"><br>
</font></strong>{$module_data.XSELL_SHORT_DESCRIPTION}
{if $module_data.XSELL_CUSTOMERS_SHOW_PRICE != 0}
<br> <strong>{$module_data.XSELL_PRICE}
<br>
</strong>
{/if}
<table width="100" border="0" id="table1">
<tr>
<td>{$module_data.XSELL_BUY_NOW}</td>
</tr>
</table></td>
</tr>
</table>
</td>
{php}
if ($col>=3) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach}
</tr>
</table>
Gruss Jpx10 |
![]() |
| Lesezeichen |
| Stichworte |
| nebeneinander, produkte, xsell |
| Themen-Optionen | |
| Ansicht | |
|
|