0
我看过类似这样的很多问题,如何在wordpress中访问magento Session?
也未找到答案
我在WordPress博客中显示客户名称和车中的物品
我已经安装了法师启动。但始终是露出无效的网址。 什么可以是有效的本地电脑的网址?
,所以我也做过类似,
require_once ("../app/Mage.php");
umask(0);
Mage::app();
Mage::getSingleton("core/session", array('name' => 'frontend'));
$session = Mage::getSingleton("customer/session");
if($session->isLoggedIn())
{echo "YES";}
else {echo "NO";}
我总是得到 “NO” .. :(
谁能请帮助我如何在WordPress