News:

Looking for documentation? Take a look on our wiki

Main Menu

Category as its own parent

Started by behemoth, June 20, 2019, 13:52:17 PM

Previous topic - Next topic

behemoth

If you create a category and set its 'Parent Category' to itself, it vanishes from the Product Categories list.

If you browse to it at the front end you get a warning "Stopped getCategoryRecurse after 10 rekursions" which makes sense, but you can't go into the category in the back end to fix it.

Jörgen

Go into phpmyadmin and change it in xxxx_virtuemart_category_categories.

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

behemoth

It's not a problem I currently have; I was fortunate enough to have another browser window open with it still in, but it just seems like 'undocumented behaviour'

Milbo

Thx, fixed by adding

if($data['category_parent_id'] == $data['virtuemart_category_id']){
$data['category_parent_id'] = 0;
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/