What's the differences for those get price functions in Mage_Sales_Model_Quote_Item_Abstract in Magento

What's the differences for those get price functions in Mage_Sales_Model_Quote_Item_Abstract in Magento

August 28, 2026 · Illustrated author avatarBy Stefan Bogdanescu
What's the differences for those get price functions in Mage_Sales_Model_Quote_Item_Abstract in Magento

Understanding Magento’s Quote Item Pricing Methods

When working with Magento, especially when dealing with shopping cart calculations, it’s crucial to have a solid understanding of how pricing is determined for each item in the quote (cart). The Mage_Sales_Model_Quote_Item_Abstract class contains several methods related to pricing, and knowing which one to use can make or break your customizations. Let’s dive into these methods and understand their differences.

Pricing Methods Explained

1. getBaseCalculationPrice()

This method returns the item price used for quote calculation in base currency. It includes all discounts and taxes applied at the time of calculation.

$item->getBaseCalculationPrice();

2. getBaseOriginalPrice()

The getBaseOriginalPrice() function retrieves the original item price as retrieved from the product, converted to the base website currency.

$item->getBaseOriginalPrice();

3. getCalculationPrice()

This method returns the item price used for quote calculation processes. It includes all discounts and taxes applied at the time of calculation in the current currency.

$item->getCalculationPrice();

4. getConvertedPrice()

The getConvertedPrice() function converts the item’s original price to the quote (cart) currency using the conversion rate specified in the quote.

$item->getConvertedPrice();

5. getOriginalPrice()

This method returns the original price for an item as retrieved from the product, in the website base currency.

$item->getOriginalPrice();

6. getPrice()

Finally, getPrice() retrieves the item’s price in the website’s base currency. It does not include discounts or taxes applied during checkout.

$item->getPrice();

Which Method to Use for Cart Pricing

The key question you asked is which method should be used to retrieve the final display price in the shopping cart, taking into account all promotions and discounts.

To get the correct price displayed in the cart, which includes all applicable discounts:

  • If you’re working with base currency calculations: Use getBaseCalculationPrice().
  • If you need the converted price for the quote (cart) currency: Use getCalculationPrice().

The getPrice() method should not be used for this purpose, as it does not include any applied discounts or promotions.

Conclusion

In Magento, choosing the right pricing method is essential to ensure your customizations display accurate prices in the shopping cart. Understanding the differences between base and converted currencies, original and calculated prices, and the inclusion of discounts and taxes will help you make informed decisions when working with quote item pricing methods.

Remember, context matters. The specific needs of your customization or extension should guide which method to use. Always ensure you’re using the most appropriate one for your intended functionality.

For more in-depth insights into Magento development best practices, be sure to check out our comprehensive guides and tutorials at Laravel Company.

Checkout Catalog Pricing SEO

Our network