I'm using Magento2.2.6.
When I try to checkout as logged user but filling in manually a
new address, it also works fine.
It is only throwing the error when it takes the saved addresses from my profile.
I use a custom
courier module for
shipping cost estimation.
Here is a link to the file:
Can somebody help?
The error is from here:
$judet_dest = iconv("UTF-8", "ISO-8859-1//TRANSLIT", $detalii_dest["region"]);
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); $shippingAddress = $cart->getQuote()->getShippingAddress(); $detalii_dest = $shippingAddress->getData();