VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: derchris on January 03, 2013, 11:55:00 AM

Title: Overriding a controller or model
Post by: derchris on January 03, 2013, 11:55:00 AM
Hi,

a colleague of mine customized a shop for one of our clients. One of the things he did was to add a new column to the products table (for technical information) which can be edited in backend and will be shown in productdetails.
Since I want the shop to be upgradeable I tried to upgrade to the new version, nearly all customizations were lost.

So I read a lot about the templating and made an override for productdetails. But I still have problems: how can I override the model and the controller? I tried with the 3rd party "MVC Plugin" but it didn't work...
Title: Re: Overriding a controller or model
Post by: K&K media production on January 03, 2013, 20:30:38 PM
For this things your client should use custom fields. So he can add the technical information to each product. No new column or core hacks are necessary on this way.
Title: Re: Overriding a controller or model
Post by: PRO on January 03, 2013, 22:39:48 PM
this should be done with the "specification" plugin that comes standard with vmart.
Thats exactly what its for