문제

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

도움이 되었습니까?

해결책

Just use

$this->customer->getCustomerGroupId()

Which will return the value you want

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top