VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gbruzzo on August 12, 2015, 13:37:04 PM

Title: VM3 customfield plugin override : how to?
Post by: gbruzzo on August 12, 2015, 13:37:04 PM
Dear All,

Joomla version : 3.43
Virtuemart version : 3.09

I am in the process of working on a uikit (yootheme) override of a VM3 custom-field plugin (catproduct by SMPlanet)

The plugin is as far as I can understand overridable, and is located in /plugins/vmcustom/

the main plugin folder "catproduct" contains a further folder, also called "catproduct", which contains a number of folders, among which tmpl, containing the template .php file (default.php in this case).

My understanding is that one should copy the folder "catproduct", contained in

/plugins/vmcustom/catproduct
to
/templates/[theme_name]/html/vmcustom

Strangely though, Virtuemart does not seem to be reading from the tmpl default.php file in

/templates/[theme_name]/html/vmcustom/catproduct/tmpl
but only from
/plugins/vmcustom/catproduct/tmpl

e.g it seems Virtuemart is not loading/accessing the custom-field override

Am I doing something obviously wrong?

thank you all for any comments you may have

Giacomo Bruzzo
Title: Re: VM3 customfield plugin override : how to?
Post by: Jörgen on August 12, 2015, 13:50:19 PM
Hello You have missed the path:

plugins/vmcustom/catproduct

should be copied to

/templates/[theme_name]/html/plugins/vmcustom/catproduct

regards

Jörgen @ Kreativ Fotografi
Title: Re: VM3 customfield plugin override : how to?
Post by: gbruzzo on August 12, 2015, 14:34:20 PM
Dear Jorgen,

thank you for your response.

What you are suggesting is though exactly what I think I have done.

Please see the attached image to explain / clarify

In fact I

1. created a new folder "vmcustom" in /template/[theme_name]/html

2. I copied the entire folder "catproduct" from

/plugins/vmcustom

to

/template/[theme_name]/html

Have I made an obvious mistake?

Kind regards

Giacomo Bruzzo

Title: Re: VM3 customfield plugin override : how to?
Post by: Jörgen on August 12, 2015, 15:22:02 PM
Hello

Joomla reads the view not from tmpl/default in the override. It reads from the catproduct directory. The whole structure is not preserved into the html directory. The tmpl level is not used there.

Regards

Jörgen @ kreativ fotografi
Title: Re: VM3 customfield plugin override : how to?
Post by: gbruzzo on August 12, 2015, 15:44:32 PM
Dear Jörgen

I get now, thank you for the input.

I will have to copy the template .php file directly to the catproduct directory.

Thank you in advance

Giacomo Bruzzo
Title: Re: VM3 customfield plugin override : how to?
Post by: Jörgen on August 12, 2015, 16:18:13 PM
You are welcome :)

Jörgen @ Kreativ Fotografi