3

I am using magento 1.8. I have some issue when customer say checkout.

I have listed all the items with details QTY, PRICE, DISCOUNT TAX TOTAL PRICE etc. I am unable to show the TAX

$products = Mage::getSingleton('checkout/session');
foreach($products->getQuote()->getAllItems() as $item)
{
  $productWeight = $item->getWeight();
  $productExPrice  = $item->getPrice(); // price excluding tax
  $productIncPrice = $item->getPriceInclTax();
}

used this code but I am not getting price include tax

I checked system->configuration->tax config. I have set Quebec as my default tax state, I am unable display the tax price of cart product

Any suggestion. Thanks.

3

Can you not simply call $item->getTaxAmount()?

This value should be set on the table sales_flat_quote_item for each item that tax is applied.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.