WPIntell

Source evidence

[Plugin: Mage Enabler] Same database?

Mage Enabler · support · 2011-04-16T20:00:00+00:00

mixedsentiment
highseverity
0.89relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

9 / 39 rows with source links

23.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
webdesignby resolved
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>"; print_r($cart); 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. Never mind. I got it. Magento and WordPress do NOT have to be using the same database. My issue was I did not have if(class_exists('Mage')){ Mage::getSingleton('core/session', array('name' => 'frontend')); } above get_header(); in my template file. Great plug-in. Thanks!

Comments

1 shown
webdesignby 2011-04-16T20:30:00+00:00

Never mind. I got it. Magento and WordPress do NOT have to be using the same database. My issue was I did not have if(class_exists('Mage')){ Mage::getSingleton('core/session', array('name' => 'frontend')); } above get_header(); in my template file. Great plug-in. Thanks!