Closed
Description
Steps to reproduce
- Install Magento from
develop
branch. - Install 3rd test shipping provider
- Able to show rate in checkout page
- Able to choose payment methods
- Click on "Place order"
- Exception is throwed "Please specify a shipping method"
Expected result
- Should go to success page
Actual result
- Exception is throwed "Please specify a shipping method"
I searched for the string and in file \vendor\magento\module-quote\Model\QuoteValidator.php line 53
the $method variable is null
My collectrates in shipping adapter is
$method = $this->_rateMethodFactory->create();
$method->setCarrier($this->_code);
$method->setCarrierTitle($this->getConfigData('name'));
$method->setMethod('express_method');
$method->setMethodTitle($this->getConfigData('express_title'));
$method->setPrice($this->getConfigData('express_price'));
$method->setCost($this->getConfigData('express_price'));
$result->append($method);
I noticed that when I remove the underscore symple and change $method->setMethod('express_method'); to $method->setMethod('expressmethod');
the checkout went through successfully.
I wonder can I use "_" symbol in function setmethod? I don't have this problem in magento 1