Log in
Model

WeightResolver

Magento\Catalog\Model\Product\Edit\WeightResolver

What it does

This class determines whether a product has physical weight or not, which is important for shipping calculations and product type handling.

Developers use this when they need to check if a product requires weight-based shipping or if it's a virtual/downloadable product that has no physical weight.

Public Methods

  • resolveProductHasWeight()