Zurück   rack::SPEED Support-Forum > Magento > Magento - Fragen & Probleme

Magento - Fragen & Probleme Fragen & Probleme rund um MagentoConnect

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 31.08.2011   #1 (permalink)
Neuer Benutzer
 
Registriert seit: 29.08.2011
Beiträge: 1
Renommee-Modifikator: 0
Livingstone befindet sich auf einem aufstrebenden Ast
Standard Warenkorb in Sidebar auf Startseite entfernen

Ich würde gerne den Warenkorb in der Sidebar nur angezeigt haben, falls sich Produkte im Warenkobr befinden.
Es gibt dazu schon einen thread compare feature entfernen

Hat aber leider bei mir noch nicht geklappt, da ich nicht exakt weiß wie ich sidebar.phml anpassen soll.

Im Moment sieht es so aus:

PHP-Code:
?>
<?php if ($this->getIsNeedToDisplaySideBar()):?>
<div class="block block-cart">
    <?php $_cartQty $this->getSummaryCount() ?>
    <div class="block-title">
        <strong><span><?php echo $this->__('My Cart'?></span></strong>
    </div>
    <div class="block-content">
    <?php if ($_cartQty>0): ?>
        <div class="summary">
            <?php if ($_cartQty==1): ?>
                <p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.'$this->getUrl('checkout/cart')) ?></p>
            <?php else: ?>
                <p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.'$this->getUrl('checkout/cart'), $_cartQty?></p>
            <?php endif ?>
            <p class="subtotal">
                <span class="label"><?php echo $this->__('Cart Subtotal:'?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
                <?php if ($_subtotalInclTax $this->getSubtotalInclTax()): ?>
                    <br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax?> <?php echo Mage::helper('tax')->getIncExcText(true?>)
                <?php endif; ?>
            </p>
        </div>
    <?php endif ?>
    <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
    <div class="actions">
        <?php echo $this->getChildHtml('extra_actions'?>
        <button type="button" title="<?php echo $this->__('Checkout'?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><span><?php echo $this->__('Checkout'?></span></span></button>
    </div>
    <?php endif ?>
    <?php $_items $this->getRecentItems() ?>
    <?php if(count($_items)): ?>
        <p class="block-subtitle"><?php echo $this->__('Recently added item(s)'?></p>
        <ol id="cart-sidebar" class="mini-products-list">
        <?php foreach($_items as $_item): ?>
            <?php echo $this->getItemHtml($_item?>
        <?php endforeach; ?>
        </ol>
        <script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
    <?php else: ?>
        <p class="empty"><?php echo $this->__('You have no items in your shopping cart.'?></p>
    <?php endif ?>
    </div>
</div>
<?php endif;?>
Storefront: Onlineshop für TCM, Heilpraxis & Wohlbefinden | Fuchsbau

Dankeschön
Livingstone ist offline   Mit Zitat antworten
Alt 01.09.2011   #2 (permalink)
rack::SPEED Support
 
Benutzerbild von rack::SPEED
 
Registriert seit: 19.10.2008
Ort: Meerbusch
Beiträge: 920
Renommee-Modifikator: 10
rack::SPEED hat die Renommee-Anzeige deaktiviert
Standard

Ich kann es aktuell nicht testen aber folgendes müsste funktionieren:

PHP-Code:
<?php if ($this->getIsNeedToDisplaySideBar()):?> 
<?php $_cartQty $this->getSummaryCount() ?> 
<?php if ($_cartQty>0): ?> 
<div class="block block-cart"> 
    <div class="block-title"> 
        <strong><span><?php echo $this->__('My Cart'?></span></strong> 
    </div> 
    <div class="block-content"> 
        <div class="summary"> 
            <?php if ($_cartQty==1): ?> 
                <p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.'$this->getUrl('checkout/cart')) ?></p> 
            <?php else: ?> 
                <p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.'$this->getUrl('checkout/cart'), $_cartQty?></p> 
            <?php endif ?> 
            <p class="subtotal"> 
                <span class="label"><?php echo $this->__('Cart Subtotal:'?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?> 
                <?php if ($_subtotalInclTax $this->getSubtotalInclTax()): ?> 
                    <br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax?> <?php echo Mage::helper('tax')->getIncExcText(true?>
                <?php endif; ?> 
            </p> 
        </div> 
    <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?> 
    <div class="actions"> 
        <?php echo $this->getChildHtml('extra_actions'?> 
        <button type="button" title="<?php echo $this->__('Checkout'?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><span><?php echo $this->__('Checkout'?></span></span></button> 
    </div> 
    <?php endif ?> 
    <?php $_items $this->getRecentItems() ?> 
    <?php if(count($_items)): ?> 
        <p class="block-subtitle"><?php echo $this->__('Recently added item(s)'?></p> 
        <ol id="cart-sidebar" class="mini-products-list"> 
        <?php foreach($_items as $_item): ?> 
            <?php echo $this->getItemHtml($_item?> 
        <?php endforeach; ?> 
        </ol> 
        <script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script> 
    <?php else: ?> 
        <p class="empty"><?php echo $this->__('You have no items in your shopping cart.'?></p> 
    <?php endif ?> 
    </div> 
</div> 
<?php endif ?> 
<?php endif;?>
rack::SPEED ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
entfernen, sidebar, warenkorb

Themen-Optionen
Ansicht

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

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


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Stückzahl im Warenkorb entfernen? AQUI74S Magento - Fragen & Probleme 0 24.09.2009 14:09
Gesamtsumme aus der Warenkorb-Ansicht entfernen BUG! Magento - Fragen & Probleme 1 02.09.2009 11:40
Entfernen der Box "ungefähre Versandkosten" im Warenkorb Ingo Magento FAQ - Backend 14 29.04.2009 14:30
Warenkorb Box auf Startseite ausblenden klaus43 Magento - Fragen & Probleme 3 31.03.2009 12:36
Neue Blöcke zur Sidebar hinzufügen rack::SPEED Magento FAQ - Backend 13 26.01.2009 18:02


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:45 Uhr.


Powered by vBulletin® Version 3.8.7 (Deutsch)
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0
© 2008 by rack::SPEED

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17