Silahkan Melihat Tutorial di website kami dengan nyaman ENJOY YOUR LIFE ☕

how to get store information in magento?

how to get store information in magento?


Hello Herer Some Function To use how to get store value in your phtml file.

1)

Get Current page URL of Store

Mage::app()->getStore()->getCurrentUrl();

2)

Get store data

Mage::app()->getStore();

3)

Store Id

Mage::app()->getStore()->getStoreId();

4)

Get  Store code

Mage::app()->getStore()->getCode();

5)


Get Website Id

Mage::app()->getStore()->getWebsiteId();


6)

Is Active store get 

Mage::app()->getStore()->getIsActive();

7)


Get Homepage URL of Store

Mage::app()->getStore()->getHomeUrl();












0 komentar:

Post a Comment

how to get store information in magento?