I am using Magento 2.1.4 and i need to display the region code instead of fullname in the State/Province dropdown in the cart.
California --> should be CA
Alaska -> AK
Please suggest any solution...
Solved! Go to Solution.
You can find more details about Magento internationalization here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/translations/xlate.html
We do not need to change the each and every state for the required countries manually by csv translation....
We have tried changing the following file
$option['label'] = $item->getName();
$option['label'] = $item->getCode();
public function toOptionArray()
And is working fine, but the thing is we need to override the same from our theme...as it is core file modification.