Hello i have problem with breadcrumb parents categories dont't appear in product page.
I Have try these solutions but it's not working
https://forum.virtuemart.net/index.php?topic=139906.15
https://forum.virtuemart.net/index.php?topic=139906.0
I'm using sh404sef .
Thank you for your help.
Regards.
If we use any SEF components we have problem with module breadrumbs too.
So we don't original breadrumbs from joomla and for breadrumbs on the detail products we use plugin Rich Snippets for Virtuemart.
But if you send your URL and info ybout your version and setup example product (cannonical link), then maybe some can help you :)
Thank you for your anwser,
i have desactivated sh404 and the problem is the same.
I don't know why with virtuemart 3.6.0 i haven't this problem and with virtuemart 3.6.10 and 3.6.11 i have this issue.
I have the latest release of joomla. 3.9.18
Regards.
QuoteBut if you send your URL and info ybout your version and setup example product (cannonical link), then maybe some can help you :)
Hello,
if you want you can check this url : https://www.loisillon.fr/accessoires/abreuvoirs/abreuvoir-concours-bleu-100-cc-gb.html
Thank yu.
Regards.
Ok,
now I understand.
You want to see on product detail in breadrumbs full path with parent category from product (as the same for category)_
- category with right breadcrumbs - https://www.loisillon.fr/accessoires/abreuvoirs.html - (you see all path in BM)
- product with wrong breadcrumbs - https://www.loisillon.fr/accessoires/abreuvoirs/abreuvoir-concours-bleu-100-cc-gb.html (you see short path in BM).
This is not problem with VirtueMart. The finally URL create SEF app and you must right setup.
For eshop with SEF app I see for product long URL with category parent in path, because I setup in SEF app - https://www.svicky.biz/eshop/vonne-svicky-ve-skle/aurelie-ve-skle-mix-vuni/1497-svicka-vonna-ve-skle-aurelia-ovoce-3-ks
For eshop without SEF app I see in BM for product long path with parent category - https://www.kolo-park.cz/obchod/kola-a-elektrokola/elektrokola/trekingova-krosova-elektrokola/apache-matto-e7-lady-seda-2019-detail
Look in my setup in attachment and send Your setup for Virtuemart extension in sh404sef.
Hello,
thank you for your anwser.
I have found solution. I don't have the problem with virtuemart 3.6.0
I have taken this code and replace the one in 3.6.11
//Seems we dont need this anylonger, destroyed the breadcrumb
if ($category->parents) {
foreach ($category->parents as $c) {
if(is_object($c) and !empty($c->category_name) and !empty($c->published)){
$pathway->addItem(strip_tags(vmText::_($c->category_name)), JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $c->virtuemart_category_id, FALSE));
} else {
vmdebug('Error, parent category has no name, breadcrumb maybe broken, category',$c);
}
}
}
}
$pathway->addItem(strip_tags(html_entity_decode($product->product_name,ENT_QUOTES)));
if (!empty($tpl)) {
$format = $tpl;
} else {
$format = vRequest::getCmd('format', 'html');
}
if ($format == 'html') {
I don't know why with the new code in 3.6.11 it does'nt work.
Regards.
I would also like to know that :)
According to my information, version 3.6.11 is a beta, so it's more for the DEV team to fix it and for you not to use it on production sites.
Please test if we solved it http://virtuemart.net/news/500-release-of-virtuemart-3-8-and-covid-support-campaign
I think I worked on that.