如何判断当前是否登录?
$_session = Mage::getSingleton('customer/session');if ($_session->isLoggedIn()) { // do something} else { // do another thing.}