Question

I wanted to get the user role id of the currently logged in user in Opencart for a required tweak on the listings of products. I could try to dig deep into opencart to see but hoping someone can save me time.

Cheers

Was it helpful?

Solution

Just use

$this->customer->getCustomerGroupId()

Which will return the value you want

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top