Advantages and Disadvantages of Magento
-
zendnwar
-
February 24, 2014
-
Magento
-
1 Comment
Advantages of Magento It is open source, so it’s easy to be popular and everyone can use it. Since Magento is 100% open source platform, lots of Magento extensions including free and paid ones are available to enhance of the power of Magento Ecommerce on your store. Magento is built to scale from 1 to a million, avoiding common pitfalls …
Continue Reading
How to Run Magento Code Externally?
-
zendnwar
-
February 18, 2014
-
Magento
-
0 Comments
Sometimes need to use Magento functions and classes from outside of the Magento platform. Please check the following code. <?php require_once(‘app/Mage.php’); //Path to Magento umask(0); Mage::app(); // Insert your code If you want run this script just save at your own name like upload.php run your script www.example.com/upload.php Hope it will help you.
Continue Reading
How to migrate magento from one server to another?
-
zendnwar
-
February 10, 2014
-
Magento
-
0 Comments
Several way you can move server, one of the most easiest way. Follow the below Step: 1) Back up the files in the server 2) Export the Databse 3) Move the files to the new server 4) Import the databse to the new server 5) Edit the database details . please update the file “app/etc/local.xml”, with the latest Database details …
Continue Reading
Set, Retrieve and Unset Session in Magento
-
zendnwar
-
February 10, 2014
-
Magento
-
0 Comments
Set: $mySession = ‘Hello Bangladesh’; Mage::getSingleton(‘core/session’)->setmySession($mySession); To Retrieve: $mySession = ”; $mySession = Mage::getSingleton(‘core/session’)->getmySession(); To Unset: Mage::getSingleton(‘core/session’)->unsmySession();
Continue Reading
Important functions list in Magento
-
zendnwar
-
February 10, 2014
-
Magento
-
0 Comments
General Related functions $this->getRequest()->getServer(‘HTTP_REFERER’); Product related functions $product->getName() $product->getSku() Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty() $product->getResource()->getAttribute(‘color’)->getFrontend()->getValue($product) $product->isSaleable() $product->isisAvailable() Mage::getModel(‘catalogrule/rule’)->calcProductPriceRule($product,$product->getPrice()) $product->getTierPrice(1) Newsletter related functions $subscriber = Mage::getModel(‘newsletter/subscriber’); $subscriber->subscribe($user_mail); Cache Related functions $tags = array(Mage_Catalog_Model_Category::CACHE_TAG); //Category block tag Mage::app()->cleanCache($tags) Product images Related functions $_product->getMediaGalleryImages()->getItemByColumnValue(‘label’, ‘LABEL_NAME’)->getUrl() Customer related functions $this->helper(‘customer’)->isLoggedIn()
Continue Reading
How to delete Image cache in Magento programatically ?
-
zendnwar
-
February 6, 2014
-
Magento
-
0 Comments
Just copy and paste use following code: Mage::getModel(‘catalog/product_image’)->clearCache();
Continue Reading
Error 404 Not Found in Magento Admin Login Page
-
zendnwar
-
November 22, 2013
-
Magento
-
0 Comments
This is very simple solution, Please go to your database Run below SQL. Hope it will be solved. SET FOREIGN_KEY_CHECKS=0; UPDATE `core_store` SET store_id = 0 WHERE code=’admin’; UPDATE `core_store_group` SET group_id = 0 WHERE name=’Default’; UPDATE `core_website` SET website_id = 0 WHERE code=’admin’; UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code=’NOT LOGGED IN’; SET FOREIGN_KEY_CHECKS=1;
Continue Reading
Magento : toggleMenu not defined error
-
zendnwar
-
October 31, 2013
-
Magento
-
107 Comments
If your version is old that makes this type problem. I have been tried to several way but not solved. Lastly solved this problem. Please follow my instruction. Hope you will enjoy. To solved this problem you have to Edit core file. If you avoid to edit core you can paste in your /app/core/local and then edit. or directly edit …
Continue Reading
How to migrate Magento Website from local server to live server
-
zendnwar
-
October 22, 2013
-
Magento
-
0 Comments
Consider you are familiar with database creation user assigning and and import database from local server to live server. Now I am discussing the most important steps which you can be useful for rapid magento migration to local server to live server within minuet without any problem. Before import the database you should add follow code to top of the …
Continue Reading
Why the Tier Price don’t show in Magento?
-
zendnwar
-
September 19, 2013
-
Magento
-
0 Comments
For some reason Tier price don’t show in your product price. Please check below info, hope it will solve. Points are: 1.) Clear cache. 2.) Make sure re-indexing is complete. 3.) Make sure The tire price should less then normal price. 4.) Check the code of product view page whether the code was removed?
Continue Reading