VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Adrian Cumpanasu on October 11, 2011, 14:25:02 PM

Title: Several custom fields with the same name. How?
Post by: Adrian Cumpanasu on October 11, 2011, 14:25:02 PM
I have custom field "weight" that is common to many categories of products.
I sell all sort of publicity equipment, each of their categories having a group of fields.
I want "weight" to be part of all this groups of fields, but everytime I add it in another group, virtuemart adds a random number after its name: ex "weight342283644".

So i tried making diferent variants: weight:   weight.   weight-  but I have no more ideas and it seams unprofessional.

What should I do?
Title: Re: Several custom fields with the same name. How?
Post by: Adrian Cumpanasu on October 12, 2011, 09:52:10 AM
Maybe I am not understood well. I give example of 2 groups of fields:

specifications printer          specifications cutter
ink type                                 lenght cuttable
printing heads                       power consumption
weight                                   weight


So I cannot define "weight" twice with the same name, why? or what sholud I do to use a field in multiple field groups. It may seeam simple to not use groups but I have almost 30 specification per product.
Title: Re: Several custom fields with the same name. How?
Post by: Milbo on October 12, 2011, 14:22:36 PM
Remembers me to another post with the same problem for payment/shipment methods. We just must remove one line and it should work then.
Title: Re: Several custom fields with the same name. How?
Post by: Adrian Cumpanasu on October 13, 2011, 10:00:08 AM
But I can't find that thread. :( Sorry!
Title: Re: Several custom fields with the same name. How?
Post by: Milbo on October 13, 2011, 11:05:32 AM
oh, it was not meant that way. It is already fixed in the svn. You can also remove it, just go in BE/tables/customs.php and remove there the line with the unique stuff.
Title: Re: Several custom fields with the same name. How?
Post by: freetran on May 08, 2013, 09:52:17 AM
It's strange, but I'm having the same issue in VM 2.0.20b.

What I get is:

parent: Commands                              parent: Interface
child: USB                                            child: USB2013-05-08-07-43-48_

Can this be solved without the tables/customs.php modifications?

Thanks.
Title: Re: Several custom fields with the same name. How?
Post by: freetran on May 27, 2013, 08:17:05 AM
Sorry for bothering, but can anyone help with this issue please? Thanks
Title: Re: Several custom fields with the same name. How?
Post by: dimitrakopouloslakis on February 27, 2014, 15:00:09 PM
I have the same problem!!!

Any help please?