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

How to display custom field of "custom group" type on product details form?

Started by maxkomarov, December 19, 2015, 20:21:58 PM

Previous topic - Next topic

maxkomarov



maxkomarov

Quote from: PRO on December 19, 2015, 23:42:42 PM
be more specific

Quote from: PRO on December 19, 2015, 23:42:42 PM
be more specific

Oh... English is not my native lang so excuse me.

For example:

I have custom group custom filed "Dimensions" and string custom fileds "Lenght", "Width" and "Height" - and they are childs of "Dimensions"
I would like to display it as follow:

Dimensions
   Lenght
   Width
   Height

PRO



PRO

do you have the "normal" position in your template?


also, why not just use the length,width etc fields?

maxkomarov

Quote from: PRO on December 28, 2015, 21:57:52 PM
do you have the "normal" position in your template?


also, why not just use the length,width etc fields?

Yes, I have.

It's for example only. In a real it's a group of electrical parameters of generator as part of genset.

PRO



PRO

what have you done so far?

can you send a screenshot of the custom field configuration?

and have you applied it to the product?

maxkomarov

Quote from: PRO on January 01, 2016, 23:15:17 PM
what have you done so far?

can you send a screenshot of the custom field configuration?

and have you applied it to the product?

balai

You cannot display a custom field of type "custom group"
This is used for internal classification and not for display.

You can do what you want by adding a header (e.g. Dimensions) above the custom field position that used to display these custom fields.
Ideally you have to create a unique position used only for the dimensions.
This has to be done to the product layout (components/com_virtuemart/views/productdetails/tmpl/default.php) or it's equivalent override in the template if exists.
The positions are declared in a code like: shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop'));