Author Topic: How to change Custom fields value globally  (Read 140 times)

tillhunter

  • Beginner
  • *
  • Posts: 6
  • A beginner
How to change Custom fields value globally
« on: October 12, 2017, 07:17:00 am »
Hi.
I meet with some problem and maybe someone know how to solve it.
Let's say I have few custom fields with price on every product. I Have hundreds of products with same custom fields and In one particular moment prices change. Do I need to change all fields one by one or there have any way to change custom fields value globally?

Cheers

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1054
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: How to change Custom fields value globally
« Reply #1 on: October 12, 2017, 07:38:38 am »
Hello and welcome to the forum

You don´t say anything about versions
http://forum.virtuemart.net/index.php?topic=79799.0

This can be handled bu assigning your products to a master parent that gets this custom field assigned. The Child Products inherit this.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

tillhunter

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: How to change Custom fields value globally
« Reply #2 on: October 13, 2017, 08:32:31 am »
Hi, Jörgen
Thanks for answer

My VirtueMart version is 3.2.4

What you mean by saying Master parent? Because in properties of Parent I can't see any custom field of child products

http://prntscr.com/gwt7ap
http://prntscr.com/gwt7ge

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1054
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: How to change Custom fields value globally
« Reply #3 on: October 13, 2017, 09:39:06 am »
Custom fields from the parent Product are inherited down to Child Products. Not the other way around.
Add the custom fields you want every Child to have to the parent Product.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26315
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5.9653 on J!3.8

tillhunter

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: How to change Custom fields value globally
« Reply #5 on: October 13, 2017, 13:42:40 pm »
Thanks guys for help.

One more question about custom fields.
İs there any way to display or hide custom fields based on the condition?

For example,
 if I'll choose option A from custom field. I'll see the second field where I can choose another option. When option A hidden attached field will be hidden.