Author Topic: category above description...  (Read 436 times)

Stefan Korth

  • Jr. Member
  • **
  • Posts: 51
category above description...
« on: July 22, 2018, 15:51:22 pm »
Hi, I use recent VM and Joomla, and want to change the order of display on a category page: per default you first see the description, then the categories, then the products.

In my chrome developer tools changing the order is drop dead easy, but I have not found the most excellent way to do it permanently. I use a customcss override for all design changes to make sure an update of template and/or joomla/VM does not affect my design. But those changes I suppose are to be made in the php files, so they will be subject to be reversed once I update either joomla or virtuemart.

so 1) which file do I have to change? I have found the only reference so far in the templates/xxx/index.php file
and 2) how can I make sure that the changes are permanent and will not be reversed with an update?
or 3) did I miss something and the order of both can be changed somewhere within virtuemart easily, and I just did not see it yet?



  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: category above description...
« Reply #1 on: July 22, 2018, 18:08:24 pm »
You should use template overrides. Edit and override components/com_virtuemart/views/category/tmpl/default.php and place the edited file in templates/[your-joomla-template]/html/com_virtuemart/category/

This way the changes do not get overwritten during updates.

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM on Joomla 3.9.8 PHP 7.0.33
Testing VM . on Joomla 3.9.8