News:

Looking for documentation? Take a look on our wiki

Main Menu

Child categories are not appearing at first page load

Started by ex3mist, December 12, 2020, 18:02:21 PM

Previous topic - Next topic

ex3mist

Hello,
I have a strange issue - when I go to a main category page, the div with the subcategories is not loaded at first. If you refresh the page, then it appears. You can see the images - in the first there should have another div with the child categories above the one with "browse-view" class. And you can see it in the second picture - after refreshing the page.
The "Show Children Category" in Configuration/Templates is set to Yes. The versions are:
Joomla 3.9.23
Gantry 5.4.36
VM 3.8.6 10373
PHP 7.4
Link: http://var2.ex3m.bg/

Any ideas will be appreciated.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ex3mist

Quote from: GJC Web Design on December 12, 2020, 19:51:13 PM
http://forum.virtuemart.net/index.php?topic=145141.msg515169#msg515169

Thanks a lot! Sorry, but I didn't find the post before I write. Seems it works for now by commenting those two lines:
// Show child categories
if ($this->showcategory and empty($this->keyword)) {
# if (!empty($this->category->haschildren)) {
echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children, 'categories_per_row'=>$this->categories_per_row));
# }
}