VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Kuubs on January 16, 2020, 09:27:23 AM

Title: Custom fields standard in new product
Post by: Kuubs on January 16, 2020, 09:27:23 AM
Hello,

Is it possible when you create a new product certain custom fields are already set? So I don't have to add these custom fields manually. This saves time for me because most of the products use the same custom fields (only have different prices). Is this possible to do via Javascript or something?
Title: Re: Custom fields standard in new product
Post by: AH on January 16, 2020, 11:55:39 AM
Maybe you can create a non published "dummy product" and clone it for new products
Title: Re: Custom fields standard in new product
Post by: GJC Web Design on January 16, 2020, 12:03:10 PM
or make a "pattern" product ..  see the online demo -- basically a pattern parent and your products are children
Title: Re: Custom fields standard in new product
Post by: Kuubs on January 16, 2020, 12:41:42 PM
Quote from: AH on January 16, 2020, 11:55:39 AM
Maybe you can create a non published "dummy product" and clone it for new products

Yeah I thought about that as well, but I hoped that there was a way to let it done automatically.
Title: Re: Custom fields standard in new product
Post by: GJC Web Design on January 16, 2020, 23:21:46 PM
"pattern" product == automatic

try it!
Title: Re: Custom fields standard in new product
Post by: PRO on January 17, 2020, 18:47:40 PM
I would use it in your product view template.

THEN: if you want it to NOT appear. Use a custom field to signal to hide it,