2) Then click on the tab “Product Image Watermarks” and fill the fields shown right under that and save the data .
Tag Archives: Magento
get current store details magento
Get store data : Mage::app()->getStore(); Status : Mage::app()->getStore()->getIsActive(); Store Home Url : Mage::app()->getStore()->getHomeUrl(); Store Id : Mage::app()->getStore()->getStoreId(); Store code : Mage::app()->getStore()->getCode(); Website Id : Mage::app()->getStore()->getWebsiteId(); Store Name : Mage::app()->getStore()->getName();
How to Get the Base Url for a specific Magento Store
<?php
$store_id = $this->helper(‘core’)->getStoreId();
$logoURL=Mage::app()->getStore($store_id)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
?>
Get base url inside cms – Magento
We can use {{store url=”}}
Magento version upgrade to 1.6.x
2) Download the latest magento package
wget http://www.magentocommerce.com/downloads/assets/1.6.0.0/magento-1.6.0.0.tar.gz
tar xvfz magento-1.6.0.0.tar.gz
3) Go to the terminal and change the directory to the location where the current magento site is running
4) Remove all the cache files $ rm -rf var/cache/*
5) Remov the folder downloader $ rm -rf downloader
6) Copy the folder “downloader” from the latest package to the current site $ cp -a magento/downloader
7) Move the file “ mage” from the latest package to teh current site $ cp magento/mage
8) Chnage the permision $ chmod 550 ./mage
9) Run the following commands
$ ./mage mage-setup .
$ ./mage sync –force
$ ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest –force
$ rm -rf var/cache/* var/session/*
$ rm -rf downloader/pearlib/cache/* downloader/pearlib/download/*
$ chmod 755 mage
$ php shell/indexer.php reindexall
$ ./mage upgrade-all –force
10) Copy all the file from latest package to the current site except the theme folder that the current site use
$ cp -Rf magento/* .
11) point the browser to the site url
This may take more time . so be patient. You might get a browser error when the upgrade is being done . never mind 🙂 It normal .
12) Thats all !!!
creation of multiple stores within the same website – magento
2) Create a new store in the Magento store manager
3) Select a root category for the new store
4) Crate a store view for the new store
5) Update welcome message and logo
How to get current store “root” category id
<?php
echo Mage::app()->getStore()->getRootCategoryId());
?>
How to Get current store code in magento
<?php
echo Mage::app()->getStore()->getCode();
?>
What is Magento
Magento is an open source based ecommerce web application that was launched on March 31, 2008. It was developed by Varien (now Magento Inc) with help from the programmers within the open source community but is owned solely by Magento Inc.. Magento was built using the Zend Framework.[1][2]The Magento Community Edition is the only free version of Magento available. All other versions of Magento are not free.

