How do call the quote subtotal inside a custom shipping method?

To call the quote total inside a custom shipping method

On the collect function

public function collect(

        \Magento\Quote\Model\Quote\Address\Total $total

    )

    {

parent::collect($quote, $shippingAssignment, $total);

$orderTotal = $total->getSubtotal();

}

Thank you.

Leave a comment

Your email address will not be published. Required fields are marked *