breadcrumb no longer displays parent categories virtuemart 3.6.11

Started by amlil71, April 25, 2020, 14:27:55 PM

Previous topic - Next topic

amlil71

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.

pinochico

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 :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

amlil71

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.

pinochico

QuoteBut if you send your URL and info ybout your version and setup example product (cannonical link), then maybe some can help you :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products


pinochico

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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

amlil71

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.


pinochico

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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/