Helper
Data
Magento\Checkout\Helper\Data
What it does
This helper class provides essential checkout functionality in Magento 2, including quote management, price formatting with tax calculations, and guest checkout validation.
Developers use it to access the checkout session, format prices, calculate tax-inclusive prices, handle payment failures, and check checkout configuration settings like guest checkout availability and customer login requirements.
Public Methods
- getCheckout()
- getQuote()
- formatPrice()
- convertPrice()
- canOnepageCheckout()
- getPriceInclTax()
- getSubtotalInclTax()
- getBasePriceInclTax()
- getBaseSubtotalInclTax()
- sendPaymentFailedEmail()
- isAllowedGuestCheckout()
- isContextCheckout()
- isCustomerMustBeLogged()
- isDisplayBillingOnPaymentMethodAvailable()