Breadcrumbs bug caused by components/com_virtuemart/views/category/view.html.php

Started by derek webster, June 01, 2022, 11:07:42 AM

Previous topic - Next topic

derek webster

Hi I'm not a developer so not sure If this is a bug or not.

I noticed on the Category/Browse views. that the breadcrumbs data did not display ANY sub category and indeed the whole hierarchy was gone.
I narrowed this down to line 179 in components/com_virtuemart/views/category/view.html.php

I'm using VirtueMart 4.0.2 10661

The line in question
$category = $categoryModel->getCategory($this->categoryId, false);

I replaced with the line from VM 3.8 - and the breadcrumbs re-peared
$category = $categoryModel->getCategory($this->categoryId);




Milbo

Hmm, thank you for your report.

The false just says "load without children", but it should load the parents. So i wonder a bit how this makes trouble with the breadcrumbs.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Wedal

Hi, VirtueMart 4.0.4 10688 - the bug still here. Fix it, please. Joomla breadcrumbs does not work correctly with VM4 categories and products.

Studio 42

Max, i fixed this for a customer last week using same trick using last VM.
I do not checked why, but this trick works

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/

Jörgen

My guess is:

QuoteThe line in question
Code: [Select]

$category = $categoryModel->getCategory($this->categoryId, false);


I replaced with the line from VM 3.8 - and the breadcrumbs re-peared
Code: [Select]

$category = $categoryModel->getCategory($this->categoryId);

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42