VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Budrys on July 03, 2018, 09:38:47 AM

Title: Issue with custom field
Post by: Budrys on July 03, 2018, 09:38:47 AM
I updated VM from 2 to 3.

Now I have issue with custom fields.

Here is VM2 with custom fields that I can choose - https://www.grzejniki-lazienkowe.net/oferta/240/15/grzejniki-termix/grzejnik-lazienkowy-termix-europa-480x450-302-watt-detail


Here is VM3 where I cannot chooso custom fields - http://betty71.pro-linuxpl.com/beta/index.php/oferta/grzejniki-termix-biale-i-kolorwe/240/grzejnik-lazienkowy-termix-europa-480x450-302-watt-detail

How to fix taht?
Title: Re: Issue with custom field
Post by: jenkinhill on July 03, 2018, 10:23:27 AM
Did yu use the "Update vm2 order format of customfields to vm3 format " tool?  It is in VM Tools/Tools & Migration on the Migration tab.
Title: Re: Issue with custom field
Post by: Budrys on July 03, 2018, 10:33:05 AM
Yes I did.

I could recreate my webpage and do that again. I have webpage before upgrading.


But even when I create new custom fild as editor and add it to produck there is no way to choose it - no checkbox with that field.

When I add new custom field as image and add it to product there is way to choose it with checkbox.
Title: Re: Issue with custom field
Post by: Studio 42 on July 03, 2018, 17:32:45 PM
Have you try to change your customfield main setting to Is cart attribute ?
Do you use position "addtocart" ?
Title: Re: Issue with custom field
Post by: Budrys on July 04, 2018, 08:07:01 AM
Yes, I use position "addtocart".

And I have it as "Cart Attribute".

I could give You access to my page if You want to help me.


Title: Re: Issue with custom field
Post by: Studio 42 on July 04, 2018, 11:09:32 AM
Check is input too in the customfield setting
Title: Re: Issue with custom field
Post by: Budrys on July 04, 2018, 11:19:21 AM
Yes it is.

but I still can't check it.

http://betty71.pro-linuxpl.com/beta/index.php/oferta/grzejniki-termix-biale-i-kolorwe/240/grzejnik-lazienkowy-termix-europa-480x450-302-watt-detail

Zaznacz opcję kolorystyczna.
Title: Re: Issue with custom field
Post by: Studio 42 on July 04, 2018, 17:27:43 PM
product-field product-field-type-X this mean type = editor ?
I never tested editor type as cart option, perhaps the problem is because the type.
Have you try using type = string ?
Title: Re: Issue with custom field
Post by: Budrys on July 05, 2018, 08:03:43 AM
I Will checkthat.

But in VM 2 that Type works.
Title: Re: Issue with custom field
Post by: Budrys on July 05, 2018, 09:17:23 AM
I can use string - http://betty71.pro-linuxpl.com/beta/index.php/oferta/grzejniki-termix-biale-i-kolorwe/240/grzejnik-lazienkowy-termix-europa-480x450-302-watt-detail

But it would be better to use editor field that I can check with checkbox.

It works in VM 2.
Title: Re: Issue with custom field
Post by: Budrys on July 05, 2018, 10:14:46 AM
I resolved my issue.

I used string as radiolist with some image code.

http://betty71.pro-linuxpl.com/beta/index.php/oferta/grzejniki-termix-biale-i-kolorwe/240/grzejnik-lazienkowy-termix-europa-480x450-302-watt-detail

Question - Is there option that first choice (0 zł) is marked as default?
Title: Re: Issue with custom field
Post by: Studio 42 on July 05, 2018, 12:20:36 PM
I dont know if VM select 1st element by default.
I wrote a plugin to solve all this restriction https://shop.st42.fr/en/products/shortcodes.htm
This have many fields and it's faster to code and have more feature as original fields.
Eg you can only add a selected option if this is set as required and i'm open to add new type of field, if user need a new one, if it's not to many work.
Title: Re: Issue with custom field
Post by: Budrys on July 06, 2018, 13:39:30 PM
So is there any option to change that?
Title: Re: Issue with custom field
Post by: Studio 42 on July 06, 2018, 15:54:48 PM
If you need to select first option and it's not select by default, you have to add a javascript.
But if a user disalbe javascript or modify the form, then the value is missin, it's why i wrote the plugin, because he prevent any frauds.