Jump to content

get Breadcrumbs text in admin module


polaije
 Share

Recommended Posts

Hello,

I have a module that add custom message in product front page. I one information to personnalize the message with the product category. I can retreive easily the default category but I need the full path written on the breadcrumbs because the product is in sub category.

Breadcrumbs function (function getBreadcrumbsLinks) can be found in productcontroller (I am in version PS 1.7). I am new in php develipment and I dont know know how I can use this function to retrieve the path in my module function :

public function hookDisplayProductExtraContent($params) {
  global $cookie;
  $return = "";
  $id_product = (int)(Tools::getValue('id_product'));
  $iso_code = language::getIsoById( (int)$cookie->id_lang );
  $product = new Product($id_product);
  $category = $product->getDefaultCategory();

This line return an error :
  $link=$this->context->ProductController->getBreadcrumbLinks();
 

Can you help me please.

 

Thanks,

Jean

 

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More