VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: rolandlaich on October 04, 2012, 20:02:02 PM

Title: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: rolandlaich on October 04, 2012, 20:02:02 PM
Hi everyone,

does anybody know how to override files from the folder \administrator\components\com_virtuemart\models\ in an update save way?

Thanks in advance!
Title: Re: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: bytelord on October 04, 2012, 23:37:22 PM
Hello,

You will have to edit those files, there is no possible way to override them, you could create a new model but then again you have to edit other core files to used it.

Regards
Title: Re: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: Marttyn on August 20, 2013, 21:42:03 PM
I need the same, to override /administrator/components/com_virtuemart/helpers/*.php
Ive made a modification to a helper, and dont want to loose the changes every time i update VM.
Any way to override files in there?
Title: Re: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: jenkinhill on August 20, 2013, 22:58:14 PM
No. We don't support hacking core files because they will get overwritten. Changes to core functions should be done by using a plugin - that does not get overwritten.
Title: Re: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: Marttyn on August 20, 2013, 23:03:03 PM
Quote from: jenkinhill on August 20, 2013, 22:58:14 PM
No. We don't support hacking core files because they will get overwritten. Changes to core functions should be done by using a plugin - that does not get overwritten.

Thanks Kelvyn!
Can you tell me where to find information about this? Im still wanting to make this modification without getting overwritten.
Regards!
Title: Re: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: Maxim Pishnyak on August 21, 2013, 10:55:38 AM
At the top of this page click on Dev Portal, Marttyn.
Title: Re: Template overriding for \administrator\components\com_virtuemart\models\*.php?
Post by: Marttyn on September 09, 2013, 14:36:37 PM
Thanks Maxim! Ive checked the Dev portal, and i think i will spend to much time making a plugin, just for a  simple mod... so i will wait for next release and hope it is included  ;D