Jump to content
xt:Commerce Community Forum

Staffelpreis Tabelle formatieren


thelmnt

Recommended Posts

Hallo,

ich versuche gerad vergebens die Tabelle für die Staffelpreise nicht Vertikal zu listen sondern Horizontal

Anzahl - 1 - 100 - 500 - 1000

Preis - $$ - $$$ - $$$ - $$$

zur zeit wird sie 2spaltig dargestellt.

die Datei an der ich versuche rumzufuschen ist die graduated_table.html - hoffe da bin ich schonmal richtig

kann mir jemand damit weiterhelfen?

{if $GRADUATED_PRICES}
<h2>{txt key=TEXT_GRADUATED_PRICES}</h2>
<table class="tabledetails" width="180px" border="0" cellspacing="0" cellpadding="4">
<tr class="headerrow">
<td>{txt key=TEXT_QTY}</td>
<td>{txt key=TEXT_SINGLE_PRICE}</td>
</tr>
{foreach name=aussen item=prices from=$GRADUATED_PRICES}
<tr class="{cycle values="contentrow1,contentrow2"}">
<td>{$prices.QTY}</td>
<td>{$prices.PRICE.formated}</td>
</tr>

{/foreach}
</table>
{/if}

[/HTML]

mir ist klar das es normalerweise nur der "Tausch" von <tr> und <td> ist..jedoch will es nicht so recht!

Link to comment
Share on other sites

Pardon, ich hatte es in der Zeit nun geschafft.

da ich nicht so fit in PHP bin, wusste ich nicht das ich die Erstellung neuer Spalten mit /forsearch beenden muss und für die neue Zeile wieder anfangen muss. Das war wohl mein einziges Problem :)

Danke dennoch ! :)

Link to comment
Share on other sites

  • 4 weeks later...

Kleiner Nachtrag:

ich würde gerne das "von-bis" System weg haben.

Also statt:

100-199 | 200-299 | ...

nur noch

100 | 200 | ...

stehen haben.

Wo kann ich das ändern - und wie?

(geändert habe ich es nun als, in meinem fall 10, Einzelspalten - jedoch nur statisch - schöner wäre es natürlich, das Ganze dynamisch erzeugen zu lassen, wie es bisher auch passiert ist.)

Link to comment
Share on other sites

  • 2 months later...

Guten Morgen,

leider ist das Ganze nur eine Notlösung, da das Projekt erstmal still lag.

{if $GRADUATED_PRICES}
<h2>{txt key=TEXT_GRADUATED_PRICES}</h2>
<table width="" border="0" cellspacing="0" cellpadding="10">


<tr>

<td class="staffel">{txt key=TEXT_QTY}</td>
<!--{foreach name=aussen item=prices from=$GRADUATED_PRICES}
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;">{$prices.QTY}</td>

{/foreach}-->
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>100</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>200</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>300</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>400</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>500</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>600</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>700</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>800</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>900</td>
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;" align="center";>1000</td>
</tr>
<tr>
<td class="staffel">{txt key=TEXT_SINGLE_PRICE}</td>
{foreach name=aussen item=prices from=$GRADUATED_PRICES}
<td class="staffel" style="padding-left:10px; border-left: 1px solid #ccc;">{$prices.PRICE.formated}</td>
{/foreach}
</tr>

</table>
{/if}


[/HTML]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...