Log in
Helper

Data

Magento\Catalog\Helper\Data

What it does

The Catalog Data Helper provides utility methods for common catalog operations throughout Magento 2.

Developers use this helper to retrieve current products/categories, generate breadcrumbs, handle price calculations with tax considerations, manage price scope settings (global vs website), and work with catalog-related configurations.

It's particularly useful when you need to access catalog context data or perform tax-inclusive price calculations in custom modules.

Public Methods

  • setStoreId()
  • getBreadcrumbPath()
  • getCategory()
  • getProduct()
  • getLastViewedUrl()
  • splitSku()
  • getAttributeHiddenFields()
  • getPriceScope()
  • isPriceGlobal()
  • isUsingStaticUrlsAllowed()
  • isUrlDirectivesParsingAllowed()
  • getPageTemplateProcessor()
  • shouldDisplayProductCountOnLayer()
  • getTaxPrice()