I solved the issue with a edit of the Breadcrumb.php file in the folder "oc-includes\osclass\classes".
On row57 "underneath the tag: case('item')" this was the original code
try {
$aCategory = osc_get_category( 'id' , osc_item_category_id() );
} catch ( Exception $e ) {
}
// remove
View::newInstance()->_erase('categories');
View::newInstance()->_erase('subcategories');
View::newInstance()->_exportVariableToView('category', $aCategory);
try {
$l = array (
'url' => osc_search_category_url() ,
'title' => osc_category_name()
);
} catch ( Exception $e ) {
}
$this->addLevel($l);
And I changed it to:
try {
$aCategory = osc_get_category( 'id' , osc_item_category_id() );
$parentCategory = osc_get_category('id', $aCategory['fk_i_parent_id']);
} catch ( Exception $e ) {
}
// remove
View::newInstance()->_erase('categories');
View::newInstance()->_erase('subcategories');
View::newInstance()->_exportVariableToView('category', $parentCategory);
try {
$l = array (
'url' => osc_search_category_url() ,
'title' => osc_category_name()
);
} catch ( Exception $e ) {
}
$this->addLevel($l);
View::newInstance()->_exportVariableToView('category', $aCategory);
try {
$l = array(
'url' => osc_search_category_url(),
'title' => osc_category_name()
);
} catch ( Exception $e ) {
}
$this->addLevel($l);
And now I see on the listing page the following breadcrumb path:
Sitename > Main category > Subcategory > Listing title
So if somebody else has the same problem this would solve it!
@OSclass builders; maybe a good add-on in a future release of the software?