Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我们想向所有登录或未登录的客户显示主页、类别页面、产品页面和产品 RRP。但是我们希望向所有未登录的客户隐藏主要描述和实际价格,因为我们将是一个针对不同客户集具有不同价格的企业对企业帐户。
有谁知道如何做到这一点?
if(!Mage::getSingleton('customer/session')->isLoggedIn())
{
// 显示我的块
} 别的 {
echo '登录了解更多详情';
}