質問

カートに必要なカートに必要な税金の税金は税金を含みますが、税金は異なる行に表示されるべきです。 私はこれを行うことができるのですか?ファイルを変更できる場所?

ありがとう

役に立ちましたか?

解決

これはあなたのあなたのカートの小計を得るでしょう:

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

これはあなたのカートの総計を得るでしょう:

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

他のヒント

管理パネルでこの設定を試みましたか?

システム>構成>税>ショッピングカートの表示設定

システム loading=構成>税>ショッピングカートの表示設定">

マゼントのバグです。

1532 ライン番号でapp/code/core/Mage/Tax/Model/Sales/Total/Quote/Tax.phpでこのコード行を追加します。

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

OK、私はそれを考え出した。適切にそれはMagento 1.9.2.4のコアのバグです。

行く:app / code / core / mage / tax / etc / config.xml

変更線:165

から:

<after>freeshipping</after>
.

to:

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

ここでの修正について読んでください:

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

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top