How does one get the Guest ID in Magento? I see it in administration under Customers>Guests but how can one print it on a page in the front end?
I found this for regular customers:
<?php
echo Mage::getSingleton('customer/session')->getId();
?>
How does one get the Guest ID in Magento? I see it in administration under Customers>Guests but how can one print it on a page in the front end?
I found this for regular customers:
<?php
echo Mage::getSingleton('customer/session')->getId();
?>
$visitorData = Mage::getSingleton('core/session')->getVisitorData();
echo $visitorData['visitor_id'];
Mage::getModel('core/session')->getVisitorId();
good luck!