Log in
Model

Freeshipping

Magento\OfflineShipping\Model\Carrier\Freeshipping

What it does

This class implements the Free Shipping carrier for Magento 2.

Developers would use or extend this class when configuring free shipping options based on cart subtotal thresholds, promotional rules, or when all items in the cart qualify for free shipping.

It handles the logic for determining when free shipping rates should be displayed to customers during checkout.

Public Methods

  • collectRates()
  • getAllowedMethods()