Author Topic: Several custom fields with the same name. How?  (Read 1695 times)

Adrian Cumpanasu

  • Beginner
  • *
  • Posts: 10
    • Free Photoshop Templates
  • Skype Name: adi.cumpanasu
Several custom fields with the same name. How?
« 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?
free Love PSD: digitalprimes.com

Adrian Cumpanasu

  • Beginner
  • *
  • Posts: 10
    • Free Photoshop Templates
  • Skype Name: adi.cumpanasu
Re: Several custom fields with the same name. How?
« Reply #1 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.
free Love PSD: digitalprimes.com

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Several custom fields with the same name. How?
« Reply #2 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Adrian Cumpanasu

  • Beginner
  • *
  • Posts: 10
    • Free Photoshop Templates
  • Skype Name: adi.cumpanasu
Re: Several custom fields with the same name. How?
« Reply #3 on: October 13, 2011, 10:00:08 am »
But I can't find that thread. :( Sorry!
free Love PSD: digitalprimes.com

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Several custom fields with the same name. How?
« Reply #4 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

freetran

  • Beginner
  • *
  • Posts: 7
Re: Several custom fields with the same name. How?
« Reply #5 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.

freetran

  • Beginner
  • *
  • Posts: 7
Re: Several custom fields with the same name. How?
« Reply #6 on: May 27, 2013, 08:17:05 am »
Sorry for bothering, but can anyone help with this issue please? Thanks

dimitrakopouloslakis

  • Beginner
  • *
  • Posts: 14
Re: Several custom fields with the same name. How?
« Reply #7 on: February 27, 2014, 15:00:09 pm »
I have the same problem!!!

Any help please?