Webkul
Services
Technologies Bagisto QloApps
iOS Android SAP BigCommerce Wix
Trusted by
Samsung Intel Toyota Walmart Disney Nokia Nestlé Decathlon
See all customers
Back to Top
DOC

Magento Top Links outside of magento

 

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 🙂

 

. . .

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