Magento で、ストア名、ライン番号などのアクティブなストア情報を取得するにはどうすればよいですか?
ベストアンサー1
店舗データを取得する
Mage::app()->getStore();
ストアID
Mage::app()->getStore()->getStoreId();
店舗コード
Mage::app()->getStore()->getCode();
ウェブサイトID
Mage::app()->getStore()->getWebsiteId();
店名
Mage::app()->getStore()->getName();
ストアフロントエンド名(@Benの回答を見る)
Mage::app()->getStore()->getFrontendName();
アクティブです
Mage::app()->getStore()->getIsActive();
店舗ホームページURL
Mage::app()->getStore()->getHomeUrl();
ストアの現在のページ URL
Mage::app()->getStore()->getCurrentUrl();
これらの関数はすべてクラスにありますMage_Core_モデルストア
ファイル:app/code/core/Mage/Core/Model/Store.php