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.
我正在建立一个基于 Magento 的电子商务商店。我需要做到这一点,以便用户登录功能是双重的;一份给买家,一份给卖家。
如果他/她是卖家,那么我想设置一些特殊功能,否则买家不需要。
我正在使用 Magento CE1.7.0.2
有任何想法吗 ?
Magento 提供客户组功能。
因此,您创建了两个客户组(卖家和买家),因此根据登录的客户放置一个 if 条件并显示您的结果表单。
希望这对你有帮助。
有关customer's entity id, website id, email, etc. 您可以使用 getCustomer 功能。以下代码显示了您可以从中获得什么:-
customer's entity id, website id, email, etc
echo "<pre>"; print_r(Mage::helper('customer')->getCustomer()->getData()); echo "</pre>";