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

Overriding back-office (VM3)

Started by OriyanJ, December 23, 2015, 12:37:24 PM

Previous topic - Next topic

OriyanJ

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?
VirtueMart 3.2.2

GJC Web Design

Quoteinputs to the back-office's products
??

use custom fields.. or unused fields and rename
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

OriyanJ

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.
VirtueMart 3.2.2

jenkinhill

#3
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).
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

GJC Web Design

but simply adding new fields isn't going to add them to the DB etc .. and any DB changes will be over written
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

OriyanJ

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?
VirtueMart 3.2.2

jenkinhill

New tables which are not part of the default VM db tables will not be overwritten on update.
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

OriyanJ

You guys are so helpful, much appreciated!
VirtueMart 3.2.2

OriyanJ

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?

VirtueMart 3.2.2

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

OriyanJ

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 :)
VirtueMart 3.2.2

AH

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
Regards
A

Joomla 4.4.5
php 8.1