News:

Looking for documentation? Take a look on our wiki

Main Menu

category above description...

Started by Stefan Korth, July 22, 2018, 15:51:22 PM

Previous topic - Next topic

Stefan Korth

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?

thanks!

jenkinhill

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.

https://docs.joomla.org/Understanding_Output_Overrides
https://www.ostraining.com/blog/joomla/overrides/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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