News:

Support the VirtueMart project and become a member

Main Menu

Overriding a controller or model

Started by derchris, January 03, 2013, 11:55:00 AM

Previous topic - Next topic

derchris

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

K&K media production

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.

PRO

this should be done with the "specification" plugin that comes standard with vmart.
Thats exactly what its for