VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: dslove on June 04, 2019, 08:16:16 AM

Title: Second product description field for specific products
Post by: dslove on June 04, 2019, 08:16:16 AM
Hi all,

A client has requested the creation of an additional description field, but only for products they choose to have this field.

The requirement for the field is not to be a simple textarea, but an editor.

It seems like it would be best done with some type of VM Custom Field, does anyone have any suggestions?

Joomla 3.9.6 / VM 3.4.x / PHP 7.2
Title: Re: Second product description field for specific products
Post by: Jörgen on June 04, 2019, 08:58:55 AM
Custom field, editor, yes.

You can add this to a hidden parent product if You have a structured product mix. This field is overridable and possible to hide if needed.

Jörgen @ Kreativ Fotografi
Title: Re: Second product description field for specific products
Post by: dslove on June 04, 2019, 09:30:53 AM
Quote from: Jörgen on June 04, 2019, 08:58:55 AM
Custom field, editor, yes.

You can add this to a hidden parent product if You have a structured product mix. This field is overridable and possible to hide if needed.

Thank you Jörgen  :)

Naturally, it worked. As far as I can tell though, it is not translatable (website is multilingual -sorry I forgot mention). Any ideas on how this could be achieved?
Title: Re: Second product description field for specific products
Post by: Jörgen on June 04, 2019, 11:24:58 AM
You can translate the "heading" of the field with a language key, but content no. In that case I guess this is the only solution AFAIK.
https://extensions.virtuemart.net/products/multilingual-translatable-custom-fields-detail (https://extensions.virtuemart.net/products/multilingual-translatable-custom-fields-detail)

Jörgen @ Kreativ Fotografi
Title: Re: Second product description field for specific products
Post by: dslove on June 04, 2019, 11:31:12 AM
Thanks again Jörgen!

Yes I already translated the heading using language keys.

Will look into this solution, it may very well be exactly what I need :)
Title: Re: Second product description field for specific products
Post by: Studio 42 on June 04, 2019, 13:32:52 PM
https://shop.st42.fr/en/products/shortcodes.htm (https://shop.st42.fr/en/products/shortcodes.htm) can use field per language and have an editor field.
See doc https://shop.st42.fr/en/shorcodes-english-doc#editor (https://shop.st42.fr/en/shorcodes-english-doc#editor)
Note that all types of field in this plugin can be displayed or not, for each language and user group(s) !
Title: Re: Second product description field for specific products
Post by: dslove on June 04, 2019, 13:39:38 PM
Quote from: Studio 42 on June 04, 2019, 13:32:52 PM
https://shop.st42.fr/en/products/shortcodes.htm can use field per language and have an editor field.
See doc https://shop.st42.fr/en/shorcodes-english-doc#editor
Note that all types of field in this plugin can be displayed or not for each language and user group(s) !

Fantastic!  :)
Can I use my own editor (JCE Pro) or the built-in editor is the only option?