Rissinko Posted August 22, 2016 Share Posted August 22, 2016 Hi guys, how can i get category or category link of product and use it in ProductControler.php ? Link to comment Share on other sites More sharing options...
rocky Posted August 23, 2016 Share Posted August 23, 2016 You want to get a link to the default category of the product? Try the following in the init() function of ProductController anytime after $this->product is initialised: $link = $this->context->link->getCategoryLink((int)$this->product->id_category_default); 2 Link to comment Share on other sites More sharing options...
Rissinko Posted August 23, 2016 Author Share Posted August 23, 2016 Thank you it works like charm. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now