在以编程方式保存订单时,我正在传递表(tablerate_bestway),但它给出了错误
'Please specify a shipping method.'
我保存运输方式的代码
$shippingAddress->setCollectShippingRates(true)
->setShouldIgnoreValidation(true)
->setShippingMethod("tablerate_bestway")
->collectShippingRates();
但是,如果我通过 flatrate_flatrate,它就可以工作。如何保存tablerate_bestway?
flat_rate 和 tablerate_bestway 都在 Admin 中启用。