Update 3.2.14 breadcrumb no longer displays parent categories

Started by sensomedia, April 09, 2018, 02:46:08 AM

Previous topic - Next topic

sensomedia

Solution:
/components/com_virtuemart/views/productdetails/view.html.php
Uncomment line 196:
if($category->parents===false) $category->parents = $category_model->getParentsList($product->virtuemart_category_id);

Note for 3.2.15  ;)


Philip Sorokin


Milbo

the problem is, that the parents should be already loaded, when the category is loaded. So this line shouldnt be necessary. But somehow, sometimes the parents are not there and so enabling the old line (it is just commented imho) fixes the problem.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/


Digi-web

Hello,

I just faced this problem for a product details page.
Do you plan to fix this at a certain release?

Also a note, i think i figured an other issue from structured data testing tool
https://forum.virtuemart.net/index.php?topic=140842.0

Latest Vm and Joomla version.

BR,
Alexander
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr

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/

Digi-web

Yes confirmed in wamp environment it is working.
As i saw you re-enabled the disabled line :)
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr

Milbo

Really? As far as I remember I did some more work. Not just in one file.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Digi-web

Hi i am not sure what you changed but since i found that this thread here i just modified the view.html.php for the productdetails file and just enabled the line:
if($category->parents===false) $category->parents = $category_model->getParentsList($product->virtuemart_category_id);

Since that it worked ok for me... also you vm version works and i do see this line enabled... you can check if this is the actual case by disabling this line in your host.

Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr

Milbo

yeh the line is enabled, but the caching behind was just, imho.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

pellegrinoL

Hi,

I am using VM 3.4.2, but I have the same problem... The issue is still present or I have to do something.

Best

Digi-web

Hi, to me the problem is not visible anymore in multiple websites, why dont you send us a link to check it out?
:)
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr


Digi-web

From what i see there is no links on the categories nor the final product is shown.

Are you sure you have the default breadcumbs module with these settings?
No cache on...
It should work ok.
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr