【问题标题】:In Magento how to get the regular price of each product that include tax in the shopping cart?在 Magento 中如何获取购物车中每个含税产品的正常价格?
【发布时间】:2014-05-09 21:30:06
【问题描述】:

我用这条线来获取购物车中商品的正常价格,

$this->helper('checkout')->formatPrice($_item->getProduct()->getPrice());

但我实际上想获得正常价格含税,知道如何获得吗?

【问题讨论】:

    标签: magento magento-1.8


    【解决方案1】:

    这样的?

    Mage::helper('tax')->getPrice($_item->getProduct(), $_item->getProduct()->getPrice());
    

    另见Magento get price including tax in a none-template file

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-08
      相关资源
      最近更新 更多