Hello all, I wasn't quite sure what Ottercreek was wanting here but he responded to me directly as he was having trouble posting links here. I think that has something to do with his Newbie status?!?! Anyway I took at look at a couple of this links and now I get it, and think it has some merit. So I offered to post his solution for him (being an old-timer here on the board
here's a couple of places that show what he's talking about - note the listing when an product in in multiple categories.
http://www.iherb.com/Y-S-Organic-Bee-Farms-Bee-Pollen-Powder-Plus-Papaya-Powder-10-6-oz-300-g/23682http://hobbyking.com/hobbyking/store/__60491__Universal_Remote_Control_Infrared_Shutter_IR_RC_1g.htmlThe following is from the email I got from otterslide - and now that I have seen what he was describing in the above links - I too hink it is a good addition - ADMINS - maybe added to 1.2??
And thanks Otterslide for sharing with us.
It's not the most elegant solution but here it is..
It will work if you just have a category and sub-category for an item, but if you have multiple category + sub categories for an item, it will just list all of them in one giant breadcrumb line.
Turns out my items don't have more than one Category + SubCategory so this works for me. It would get complicated to have multiple lines of breadcrumbs since the data type would have to change and I didn't want to go so far..
The main idea is to just get the categories for the product and loop them adding them as a breadcrumb,..
so in
AbanteCart\storefront\controller\pages\product\product.php
you could add the code below, while commenting other the other three breadcrumb creators around like 42-95.
I added the code after this line to make sure product model is loaded.
$prod_cats = $this->model_catalog_product->getProductCategories($product_id);
if(isset($prod_cats)) {
foreach($prod_cats as $prod_cat_id) {
$cat_info = $this->model_catalog_category->getCategory($prod_cat_id);
$this->document->addBreadcrumb( array (
'href' => $this->html->getSEOURL('product/category','&path=' . $prod_cat_id, '&encode'),
'text' => $cat_info['name'],
'separator' => $this->language->get('text_separator')
));
}
}
[/font]You will also have to copy/paste getProductCategories function from admin/model/catalog/product to model/catalog/product , as it's only available in the admin side.. I'm not sure if this was the best way to do this or there was a way to re-use it?
Quick and dirty solution.
[/font]