Mage::app()->getStore()->getStoreId(); OR $this->helper(’core’)->getStoreId();
How to Get Store ID in Magento
Posted by
rajthegr8
at
1:43 PM
Thursday, December 6, 2012
Many times during coding we require the store ID of the magento store, We can get this by using the below code in magento :
Install Magento in Ubuntu
Posted by
rajthegr8
at
1:30 PM
To install magento in Ubuntu, first Open the terminal to run the commands.
Navigate to the directory (Inside www folder) where you need to install Magento.
Navigate to the directory (Inside www folder) where you need to install Magento.
$ cd /var/wwwDownload magento 1.7.0.0 files by using the following command:
$ wget http://www.magentocommerce.com/downloads/assets/1.7.0.0/magento-1.7.0.0-alpha1.tar.gzAfter the downloading process completes, just decompress the downloaded file:
$ tar -zxvf magento-1.7.0.0-alpha1.tar.gzNow you can find a new folder “magento”. Just get into it.
$cd magentoThen set permissions for some folders like media, var and app/etc to 777:
$ chmod -R 777 media var $ chmod 777 app/etc
Subscribe to:
Posts (Atom)
Blog Archive
Popular Posts
-
You can select,insert,update and delete data in the Magento wby using their models concept. For example,a table named ‘testdata‘ with the fo...
-
This article will explain how to create an extension to send all the emails through gmail or other servers.I have created an module to set u...
-
This is an article to show you ,how you can set MySql Master-slave replication in magento for scalability ,handle failover and performance. ...
-
Breadcrumb is necessary for making website pages user navigation friendly. It can be printed out in any of the php or phtml pages by below c...
-
This blog will show you how to get all items in a shopping cart and totals in a magento store : $items = Mage::getSingleton('checkout/...