I've noticed a few questions regarding this issue but they were all old and I was hoping you'd help me understand it a bit better.
I'm trying to add new inputs to the back-office's products, I don't want my changes to get trashed when updating, is there a way to override the files without figuring out how to make a plug in?
Quoteinputs to the back-office's products
??
use custom fields.. or unused fields and rename
I thought about it but I really prefer editing the template instead of creating countless custom fields for each product.
I have like 10 new fields I want to add and I hoped there's a way to override the admin template.
BE templates can be overriden in the same way as FE, the only difference being that the BE does not use sublayouts.
eg edit the files at administrator/components/com_virtuemart/views/shoppergroup/tmpl/
and put the overrides in
administrator/templates/isis/html/com_virtuemart/shoppergroup/ (assuming you use Isis in the BE).
but simply adding new fields isn't going to add them to the DB etc .. and any DB changes will be over written
GREAT! jenkinhill, thank you. exactly what I needed to figure out.
GJC Web Design, I did manage to control the DB, adding new tables and fields, are they going to be deleted?
New tables which are not part of the default VM db tables will not be overwritten on update.
You guys are so helpful, much appreciated!
I'm trying to override -
/com_virtuemart/helpers/shopfunctionsf.php with /templates/[TEMPLATE]/html/com_virtuemart/sublayouts/shopfunctionsf.php
/com_virtuemart/tables/products.php with /templates/[TEMPLATE]/html/com_virtuemart/tables/products.php
But it seems not to work, am I doing something wrong?
helpers don't over ride
1. If helpers don't override that means I'm gonna lose my changes there?
2. What about tables?
Thanks for being patient with me :)
Table overrides may get reset if you have messed with existing fields
If you add new table fields the code that manages them will get reset - the "new" table entries should be kept
Display templates that are saved in the relevant html/ directories will not be touched
Language overrides if done using the joomla override method will be kept - if you have just updated the VM language files, they will be lost