News:

Looking for documentation? Take a look on our wiki

Main Menu

How to change Custom fields value globally

Started by tillhunter, October 12, 2017, 07:17:00 AM

Previous topic - Next topic

tillhunter

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

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.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

tillhunter

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

#3
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.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

tillhunter

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.