Data
Magento\Checkout\Helper\Data
What it does
This helper class provides utility methods for checkout operations in Magento 2.
Developers use it to access checkout session data, format prices, calculate tax-inclusive prices, manage guest checkout permissions, send payment failure emails, and retrieve checkout configuration settings.
It's commonly used in checkout templates, controllers, and blocks to handle pricing calculations and checkout-related business logic.
Public Methods
- getCheckout()
- getQuote()
- formatPrice()
- convertPrice()
- canOnepageCheckout()
- getPriceInclTax()
- getSubtotalInclTax()
- getBasePriceInclTax()
- getBaseSubtotalInclTax()
- sendPaymentFailedEmail()
- isAllowedGuestCheckout()
- isContextCheckout()
- isCustomerMustBeLogged()
- isDisplayBillingOnPaymentMethodAvailable()