Question

Je veux et avez besoin dans le panier d'affichage du prix total total sans inclure la taxe, mais le prix d'impôt doit être affiché dans une ligne différente. Comment puis-je faire ceci?où je peux modifier le fichier?

merci

Était-ce utile?

La solution

Cela vous obtiendra votre sous-total:

Mage::getModel('checkout/cart')->getQuote()->getSubtotal();

Cela permettra à votre chariot le total de vos paniers:

Mage::helper('checkout')->formatPrice(Mage::getModel('checkout/cart')->getQuote()->getGrandTotal());

Autres conseils

Avez-vous essayé ce paramètre de configuration dans le panneau d'administration?

Système> Configuration> Taxe> Panier d'achat Paramètres d'affichage

Système loading= Configuration> Taxe> Panier Panier Paramètres">

Ceci est Bug Magento.

Ajoutez cette ligne de code dans app/code/core/Mage/Tax/Model/Sales/Total/Quote/Tax.php à 1532 n ° de ligne

if ($this->_config->displayCartTaxWithGrandTotal($store)) {
            $grandTotal = $address->getSubtotal() + $address->getShippingAmount() + $taxAmount - $address->getShippingTaxAmount();
            $address->setGrandTotal($grandTotal);
}

OK, alors je l'ai compris.Apparemment, c'est un bogue de base dans Magento 1.9.2.4.

aller à: app / code / noyau / mage / taxe / etc / config.xml

Changer de ligne: 165

de:

<after>freeshipping</after>

à:

<after>subtotal,nominal,shipping,freeshipping</after>

LIRE À propos du correctif ici:

https://github.com/openmage/magento-lts/pull/84

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top