Author Topic: Setting Custom Fields within a Parent  (Read 2464 times)

virtue111

  • Beginner
  • *
  • Posts: 15
Setting Custom Fields within a Parent
« on: October 27, 2011, 21:22:37 pm »
We would like to make a custom field, with a preset of selections that will come with it. For simple sake let's say we want to make a "Color" variant, and have the options of "Red" "blue" and "green".

I have figured out how to get the Color attribute to show up on the product, and then I can type in "Red", "Blue", and "Green" into the Ajaxy fields. But we have a ton of products and don't want to have to go in and type them all manually.

Is there anyway to make "Color" a parent, and make "Red" "Blue" and "Green" be child items, so that they will always come up? And then we could use the Ajaxy thing to delete "Red" if we didn't want it for a certain product, or to add "Purple" if we needed it specifically for a product?

It seems like this should be easy to do, but we just can't get it to work.

I thought maybe adding the Parent item, and setting it to "Is a List" and then adding child items of "Strings" but this doesn't work either. Please help! :)

zzsser

  • Beginner
  • *
  • Posts: 37
  • I love virtuemart but I dislike bugs :-(
Re: Setting Custom Fields within a Parent
« Reply #1 on: October 28, 2011, 14:12:58 pm »
Same problem! Hos to add rapidly a field (colour) with all its variants (red, blue,...). By cloning an existing product, custom fiels are ignored, they are not cloned  :(  :(  :(

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1358
Re: Setting Custom Fields within a Parent
« Reply #2 on: October 28, 2011, 15:22:50 pm »
Interesting approach

virtue111

  • Beginner
  • *
  • Posts: 15
Re: Setting Custom Fields within a Parent
« Reply #3 on: October 31, 2011, 14:43:51 pm »
I still really need an answer for this. Is there really no way to do this? It seems like this would be the whole reason for adding the new functionality, otherwise we may as well just be typing them in for each product...

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3724
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Setting Custom Fields within a Parent
« Reply #4 on: November 01, 2011, 05:31:48 am »
Hi,

Have to test why custom fields settings are not added on cloning.
Because is a object copy , it's strange this are not working

virtue111

  • Beginner
  • *
  • Posts: 15
Re: Setting Custom Fields within a Parent
« Reply #5 on: November 04, 2011, 21:53:46 pm »
Thank you for your response. Glad to find this isn't a "user error" :) We'd been messing with it off and on for a week.