VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: ExSpirit on May 03, 2015, 21:59:17 PM

Title: Two properties in one custom field?
Post by: ExSpirit on May 03, 2015, 21:59:17 PM
I would like to have some custom field in VM3 where I could set date and in another field some text. I can't find any Custom Field type which would allow me to do that (I only have option to select only date or only text, but never together as one custom field with 2 properties). Is that even possible?
Title: Re: Two properties in one custom field?
Post by: GJC Web Design on May 03, 2015, 22:39:20 PM
would have thought impossible

why not two separate?  you can always fiddle with the display via css etc
Title: Re: Two properties in one custom field?
Post by: ExSpirit on May 04, 2015, 09:22:53 AM
Well user has to select one of the options (which contains date and location). And I have to be able to sort those values by date, so that's why I need to be able to add two values in one propertie.
Title: Re: Two properties in one custom field?
Post by: Studio 42 on May 04, 2015, 12:27:09 PM
Hi,
You can do your own vmcustom plugin if you need specific settings, see the text input plugin for eg.
But you need to write some php
Look on the attached file, this use one plugin only+ some css rules and Joomla overides

Patrick
Title: Re: Two properties in one custom field?
Post by: ExSpirit on May 06, 2015, 18:14:00 PM
I tried, but couldn't make it. Do you maybe know if this kind of plugin is for sale anywhere (so ability to select date, just like with date field + text field)?
Title: Re: Two properties in one custom field?
Post by: Studio 42 on May 06, 2015, 19:01:57 PM
I think this is to specific to do a general plugin.
If you need it, then this can be done as a custom work, this is not a heavy work.
You can contact me or another developper in forum by PM doing custom plugins, if you don't find it to buy.
Title: Re: Two properties in one custom field?
Post by: ExSpirit on May 06, 2015, 22:17:32 PM
OK, I have sent you PM about this (and another small thing).