Support » Plugin: Mage Enabler » [Plugin: Mage Enabler] Same database?

  • Resolved webdesignby


    Do WordPress and Magento have to use the same database?

    I have mage-enabler successfully installed. I add an item to my shopping cart on the Magento site.

    When I run this code in WordPress

    $cart = Mage::helper('checkout/cart')->getCart()->getItemsCount();
                                echo "<pre>";
                                echo "<pre>";

    It returns 0

    Did not see anything in any of the instructions saying it has to use the same database but I am wondering if this is the reason.

Viewing 1 replies (of 1 total)
  • webdesignby


    Never mind. I got it. Magento and WordPress do NOT have to be using the same database.

    My issue was I did not have

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

    above get_header(); in my template file.

    Great plug-in. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Mage Enabler] Same database?’ is closed to new replies.