3

What I'm doing is

$quote->getShippingAddress()->addData($shipping->getData()); 

where

$shipping = $customer->getDefaultShippingAddress();` 

However, I'm getting Please specify a shipping method. on quote save. I've also tried to do

    $quote->getShippingAddress()->setCollectShippingRates(true);

    $quote->setTotalsCollectedFlag(false)->collectTotals();

But it's not helping. Any idea what I'm missing? It's a custom module I'm trying to fix.

  • Make sure your shipping method is active from backend or else check any extension is not hiding it via plugin or observer. – Himanshu Jan 24 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.