Log in
Model

Tablerate

Magento\OfflineShipping\Model\Carrier\Tablerate

What it does

This class implements Magento 2's Table Rate shipping method, which calculates shipping costs based on configurable rules using destination, weight, price, or item quantity.

Developers use this when they need flexible shipping rates that vary by conditions like order subtotal thresholds, product weights, or quantities.

It handles rate calculation, virtual product exclusions, and free shipping promotions.

Public Methods

  • collectRates()
  • getRate()
  • getCode()
  • getAllowedMethods()