Returns the customer id when the visitor that is seeing current product is logged in as a customer in your store, and returns 0 if not.

Syntax

$dummy = CFO_GetCustomerId();

Example

if(CFO_GetCustomerId()!=0) {
    // Do some calculations
} else {
    // Do other calculations
}