0

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

icedwater
  • 4,701
  • 3
  • 35
  • 50
Albert
  • 3
  • 2

1 Answers1

2

Just use

$this->customer->getCustomerGroupId()

Which will return the value you want

Jay Gilford
  • 15,141
  • 5
  • 37
  • 56
  • Thank you for answering, I actually figured it out myself but I appreciate it that you answered it :) – Albert Feb 04 '13 at 05:21