Back to Top

Magento Top Links outside of magento

Updated 19 May 2017

 

magento linksMagento Top Links outside of magento : best thing with magento is you can call whole magento layout in any external website e.g if you are dealing with wordpress for phpbb , this following feature is phenominal . Here is a simple process  create any php file and make sure your app/mage.php file path is correct here is the following code

$MageInclude = 'app/Mage.php';
require_once $MageInclude;
umask(0);
Mage::app();
Mage::getSingleton('core/session', array('name'=>'frontend'));
$block = Mage::getSingleton('core/layout');
$links   = $block->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top.phtml');
echo $links->toHtml();

enjoy 🙂

 

Searching for an experienced
Magento Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home