VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: tillhunter on October 12, 2017, 07:17:00 AM

Title: How to change Custom fields value globally
Post by: tillhunter 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
Title: Re: How to change Custom fields value globally
Post by: Jörgen 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 (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
Title: Re: How to change Custom fields value globally
Post by: tillhunter 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
Title: Re: How to change Custom fields value globally
Post by: Jörgen 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
Title: Re: How to change Custom fields value globally
Post by: jenkinhill on October 13, 2017, 12:13:26 PM
This may help for understanding childs:  http://docs.virtuemart.net/manual/general-concepts/186-derived-products-product-pattern-child-products.html
Title: Re: How to change Custom fields value globally
Post by: tillhunter 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.