Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Magento be integrated with CakePHP?

Can Magento be integrated with CakePHP? If my site is developed in CakePHP. Can I do the product module including shopping cart in Magento?

like image 352
Ipsita Rout Avatar asked May 25 '11 09:05

Ipsita Rout


1 Answers

Yes, it can. For example:

require_once 'app/Mage.php';
umask(0);

Mage::app();
Mage::getSingleton('core/session', array('name'=>'frontend'));

$cart = Mage::helper('checkout/cart')->getCart()->getItemsCount();
echo 'Items count: ' . $cart;

Look at these articles:

http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php

http://blog.chapagain.com.np/magento-how-to-run-magento-code-in-an-external-website/

like image 71
silex Avatar answered Sep 22 '22 15:09

silex