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?
have you found out the solution ?
Unfortunately not yet.
have you tried having BOTH files in the admin override folder?
yes,
I just found this post that could give a solution, but not tried yet :
http://forum.virtuemart.net/index.php?topic=117254.msg395923#msg395923
Tested : it works !
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');
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.