Mostaq mahmud
Mostaq mahmud

Reputation: 93

Guest id and user id in Magento

Is the user id value is same as guest id value after a guest has been place an order that means logged in?

$customerId = Mage::getModel('customer/session')->getCustomerId();
$vistitorId = Mage::getModel('core/session')->getVisitorId();

Please make me knock if my question is not clear.

Thanks

Upvotes: 2

Views: 3214

Answers (1)

Prasath Albert
Prasath Albert

Reputation: 1457

No. CustomerId is totally different from the visitorid. Magento Create Visitorid per session. But Customerid is created when user get registered.

Upvotes: 4

Related Questions