#1 (permalink)  
Alt 27.10.2010, 09:22
Neuer Benutzer
 
Registriert seit: 24.03.2010
Beiträge: 4
Standard Staffelpreis-Tabelle auch in der Produkteliste

Da standardmässig die Staffelpreistabelle nur bei der Detailansicht des Produktes gezeigt wird, mein Kunde diese jedoch auch in der Produkteliste anzeigen wollte, habe ich mal was gebastelt. Ist sicherlich nicht die eleganteste Lösung, aber es funktioniert.

Hier der Code:

Gelöst in der product_listing_v1.html:

PHP-Code:
<class="price">        
    {if 
$module_data.group_price.prices}
    <
table class="tabledetails" width="40%" border="0" cellspacing="0"  cellpadding="4">
         <
tr class="headerrow">
        <
td>{txt key=TEXT_QTY}</td>
        <
td>{txt key=TEXT_SINGLE_PRICE}</td>
         </
tr>
        {
section name=tabelle loop=$module_data.group_price.prices}
        <
tr class="{cycle values="contentrow1,contentrow2"}">
             <
td>
            {if 
$module_data.group_price.prices[tabelle].qty == 1}
                {
$module_data.group_price.prices[tabelle].qty} -   {$module_data.group_price.prices[tabelle.index_next].qty-1}
            {else}
                {if 
$module_data.group_price.prices[tabelle.index_next].qty}    
                    {
$module_data.group_price.prices[tabelle].qty} - {$module_data.group_price.prices[tabelle.index_next].qty-1}
                {else}
                     >={
$module_data.group_price.prices[tabelle].qty}
                {/if}
            {/if}
               </
td>
               <
td>
                   {
php}
                    global 
$currency;            
                    echo 
$currency->prefix;
                   {/
php}                
                   {
$module_data.group_price.prices[tabelle].price|string_format:"%.2f"}
                </
td>
        </
tr>
        {/
section}        
    </
table>
      {/if}
 </
p
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
produkteliste, staffelpreistabelle

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[SOLVED] Inhalt der Unterkategorie wird auch bei der Hauptkategorie angezeigt Bongartz120 Fragen zur Software 3 22.08.2009 10:59
Erweiterung der Tabelle Prdoukte um Flag/Checkbox d_sturm Fragen zur Software 0 12.08.2009 14:14
Falsche Darstellung der Reverse Cross Selling Purecut Installation und Konfiguration 0 20.04.2009 00:03
Scheibenkleister Mehrfachinstallation Ludinator Installation und Konfiguration 10 14.12.2006 13:35


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:22 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand