VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: Stefan Korth on July 22, 2018, 15:51:22 pm

Title: category above description...
Post by: Stefan Korth 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?

Title: Re: category above description...
Post by: jenkinhill 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.