Magento – including. VAT. plus. Versand zum Preis hinzufügen

Standardmäßig wird Magento den Preis ohne die Steuer- und Versandinformation anzeigen. Es fehlt also z.B. “including. 19% VAT. plus. Shipping”.

Dies kann man einfach hinzufügen indem man z.B. Market Ready Germany oder ähnliche für den deutschen Markt erstellte Anpassungen in seinen Magento Shop einspielt.

Natürlich kann man dies aber auch auf anderem Wege lösen, um sich nicht Dinge zu installieren, die man evtl. gar nicht haben will.

Eine nette Möglichkeit wäre die nachfolgende. It consists of the Info “including. [Artikelsteuerklasse-Name], plus. [Link zu] Shipping”.

PictureUm dies z.B. für die Atikeldetail-Seite einzupflegen, kopiert man sich die view.phtml aus dem Standard-Template-Ordner (e.g.. bei RWD app/design/frontend/rwd/default/template/catalog/product) in sein eigenes Template und fügt folgenden Teil z.B. under

<div class ="price-info">
<?php echo $this->getPriceHtml($_product); ?>
<?php echo $this->getChildHtml('bundle_prices') ?>
<?php echo $this->getTierPriceHtml() ?>

a:

<div class ="tax-info">
<?php
$taxClassId = $_product->getTaxClassId();
$taxClass = Mage::getModel('tax/class')->load($taxClassId);
echo 'VAT. '.$taxClass->getClassName().'plus. <a href="'.$this->getUrl('shipping').'">Shipping</a>';
?>
</div>

PictureHiermit wird dann der Name der jeweiligen -dem Produkt zugeordneten- Artikelsteuerklasse (can be contacted at sales > Tax > Article tax brackets and there then just the class “19% Tax” call) and the link to the shipping info displayed.

You could adjust wiefolgt but also, it then looks:

                <div class ="price-info">
                    <?php echo $this->getPriceHtml($_product); ?>
                    <?php echo $this->getChildHtml('bundle_prices') ?>
                    <?php echo $this->getTierPriceHtml() ?>
                    <span class="price-including-tax">
                      <?php
                      $taxClassId = $_product->getTaxClassId();
                      $taxClass = Mage::getModel('tax/class')->load($taxClassId);
                      echo 'VAT. '.$taxClass->getClassName().'plus. <a href="'.$this->getUrl('shipping').'">Shipping</a>';
                      ?>
                    </span>
                </div>

Then it adjusts the RWD Theme partially better a.

This is certainly not the finest way (one could make the text even translatable) but it is fine enough, not to be indelicate 🙂

Addendum dated 15.02.2017

If you want to have this info in the category,, Here we use the list.phtml from the o.g. Directory. There is then copied

                     <span class="price-including-tax">
                      <?php
                      $taxClassId = $_product->getTaxClassId();
                      $taxClass = Mage::getModel('tax/class')->load($taxClassId);
                      echo 'VAT. '.$taxClass->getClassName().'plus. <a href="'.$this->getUrl('shipping').'">Shipping</a>';
                      ?>
                    </span>

under

<?php echo $this->getPriceHtml($_product, true) ?>

Attention: This line, there are two times in the file. Once for the list view and once for the Grid view.

Addendum dated 28.09.2017

We have now solved it in a different way, the comfortable and rel. is flexible. Changed, we do not have the list.phtml but the app / design / frontend / rwd / default / template / catalog / product / price.phtml (or what folder Anyway).

We have added the last line it here:

<span class="mwstinfo"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('VAT-info')->toHtml() ?></span>

So we load a static block with the code “mwst-info”. This we then created and only

<p>including. Tax, plus. <a href="/shipping">Shipping</a></p>

reingeschrieben. About the CSS class “mwstinfo” then one can make various layout adjustments.

In this way, the control- and shipping info at all locations indicated on the price appears. whether category, Product detail page, Slider… where that is loaded price.phtml everywhere. One can also make very flexible per store view adjustments.

Certainly no highly professional manner but practical and comfortable.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

One comment on “Magento – including. VAT. plus. Versand zum Preis hinzufügen”

  1. I have the following, found meaningful logic for us as shippers in the world:

    If users not logged = Display incl. Control (So you have to start from shipping to DE and the local taxation)
    When users logged = system, the billing country brings (Is created if necessary until the checkout and the control of the configuration of the land (If a country lacks, no taxes on the product or Germany as a fallback Show)

Leave a Reply

Your email address will not be published. Required fields are marked *