Sign up ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

I want to add array elements price and tax amounts and I have some thing like below for adding.

'price': '{$item['price']}',
'tax': '{$item['tax_amount']}',

here i want to add price (price) amount and Tax amount (tax_amount), can anyone please tell me how do i add these two.

share|improve this question

closed as unclear what you're asking by MeenakshiSundaram R, Amit Bera, fschmengler, 7ochem, liyakat Jun 29 at 9:40

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Mage::helper('core')->currency($product->getFinalPrice()) should bring up the price with the tax if that´s what you are looking for Mage::helper('tax')->getPrice($product, $product->getFinalPrice(), 2) – Thomas Jun 29 at 9:24

1 Answer 1

Mage::helper('core')->currency($product->getFinalPrice())

should bring up the price with the tax if that´s what you are looking for

Mage::helper('tax')->getPrice($product, $product->getFinalPrice(), 2)
share|improve this answer

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