VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: fmedina on May 10, 2020, 15:37:40 PM

Title: Using custom field string (list) for adding charge
Post by: fmedina on May 10, 2020, 15:37:40 PM
I want the simplest way to add pricing to a list.  I can do it adding 3 fields to each product I created, but i just want to add one custom field to about 100 products that already exist, otherwise I have to add the three options to each product.

I want to be able to add:

+$10.00 option 1
+$15.00 option 2
+$20.00 option 3

Can I do this with the default value of string custom field?

I can add the three options like so:

Field
Default Value: none; option 1; option 2; option 3

Now, how to I add a monetary value to those, I can't seem to find that, does that exist?  I am on VM 3.2.2

Thanks,
Title: Re: Using custom field string (list) for adding charge
Post by: Jörgen on May 10, 2020, 16:02:26 PM
Use child products, the children inherit customfields from the base product. Unpublish the base product.

Jörgen @ Kreativ Fotografi
Title: Re: Using custom field string (list) for adding charge
Post by: fmedina on May 10, 2020, 16:09:47 PM
I have learned that now that I have been reading, but I have inherited this store with about 100 products that already created.

No easy way to just add one custom field item to each product?

Thanks,
Title: Re: Using custom field string (list) for adding charge
Post by: Jörgen on May 10, 2020, 18:06:23 PM
Make an sql query and assign every child the correct parent id. Id = 0 no parent. Should make it easier to maintain. You will understand that when You have thousends of products,
There are tools for this, Regular lab has dbreplacer, Studio42 has VM Be to manage such a task.

Jörgen @ Kreativ Fotografi
Title: Re: Using custom field string (list) for adding charge
Post by: fmedina on May 10, 2020, 18:20:03 PM
Thank you Jorgen.

Will do then.

Regards,