Prestashop 1.6: Get id_customer and getDefaultGroupId

Source: http://stackoverflow.com/questions/16231440/how-to-get-prestashop-current-user-id
Example:
$id = (int)$this->context->customer->id;
$id_default_group = Customer::getDefaultGroupId((int)$id);

This entry was posted in ecommerce and tagged , . Bookmark the permalink.