News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Administrator template override

Started by mtaras, March 19, 2013, 12:45:42 PM

Previous topic - Next topic

mtaras

Hi I 've try to implement an override of the admin views of VM2 in my default template.
I try to override the /administrator/components/com_virtuemart/views/product/tmpl/product_edit_information.php as /administrator/templates/com_virtuemart/product/product_edit_information.php but nothing overrides. I can just override the /administrator/templates/com_virtuemart/product/default.php in general the default.php file of the views, not some other file? Is that a bug or I could override with some other method?

emicoma


mtaras


PRO

have you tried having BOTH files in the admin override folder?


emicoma


emicoma


Uke

Thanks alot!  :)

Why this was not in the last virtuemart update? Nobody knows...  :o

line 57 in /administrator/components/com_virtuemart/views/product/view.html.php

//$this->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'views'.DS.'product'.DS.'tmpl');


AH

I think it was kept in to allow admin to edit product in the frontend. Other views are fine to override.

Without it I think the frontend cannot find the view

As I NEVER allow editing in the frontend it is ok for me to remove this line and create my view override in the backend for products.

Regards
A

Joomla 4.4.5
php 8.1