VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stawebnice on June 23, 2015, 10:43:39 AM

Title: Multivariant string is being added as extra custom field to child products
Post by: stawebnice on June 23, 2015, 10:43:39 AM
VM 3.0.10
Joomla 3.4.1

Hi,

I have noticed this issue with string assigned to multivariant (to enable search)

somehow it adds these custom fields to child products: http://imtp.me/9pei02lj3.p

that then appear after selectign an option in the front end like this: http://imtp.me/9pek02lj3

When I delete them manually,everything works fine,but is there a way to prevent this, please?

here is the setting of the string: http://imtp.me/9peo02lj3.p

Thanks!
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 01, 2015, 17:59:52 PM
Same happens to me! it seems something like a bug. I confirm it's possible to solve manually deleting the string but is there any way to prevent it? is very annoying and you loose a lot of time in case of a large amount of childs.
Giuseppe
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: stawebnice on July 01, 2015, 19:50:06 PM
We found out that when you set the string settings Hidden to yes, it will  solve the problem
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 01, 2015, 23:45:38 PM
Thank you Petra.
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: stawebnice on July 02, 2015, 00:12:15 AM
no problem,anytime  8)
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: balai on July 02, 2015, 10:49:20 AM
Possibly you can also use the layout position to set them to a non-existent position
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 02, 2015, 12:48:14 PM
But the string that is added automatically to the products is used in other products, so if I set it as Hidden disappear where I need... I'm missing something?  :D
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: balai on July 02, 2015, 12:56:19 PM
I think that you should not use the same custom field for the multi-variants and other fields
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 02, 2015, 13:17:32 PM
But I don't use the same custom field. When I use the Multi-variant custom field the system automatically add randomly one custom field of "String" type to the childs for every variant of the parent product, those String custom fields are not used in mutivariant . May be I'm doing something wrong but I don't understand what.
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 02, 2015, 13:20:02 PM
Another thing.... the string field added to the childs products has as "value" the type of variant of the parent.
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 02, 2015, 13:42:29 PM
And everytime I make a change and save the parent product automatically all the child are again with the strings I deleted
Title: Re: Multivariant string is being added as extra custom field to child products
Post by: Geppux on July 02, 2015, 16:27:39 PM
Ok now may be I understood... The string custom field is not random but is selected where you can see in the attachment. So, seen that seems impossible leave the field empty but you must insert a string custom field, I created a hidden string custom field and this solved my problems.