Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
region_id をに変換して、Magento1.6.2で単一の州名を表示する必要がありますstate name。
region_id
state name
私は持っておりregion_id、すべての米国の州の配列を返すことができます
$states = Mage::getModel('directory/country')->load('US')->getRegions();
しかし、を変換するヘルプクラスが見つかりませんregion_id。
$regionId = 27; $region = Mage::getModel('directory/region')->load($regionId); echo $region->getName();