Create variable product with prices based on attributes
-
I have a WC store and most products are variable products. Products have 2 global attributes – scale and fabric. The price of every variation is based on the fabric attribute, no matter what the scale is. I can use the built-in functionality to create all the variations which creates all combinations of both attributes, but it would be great if the variation price could be automatically populated based on a custom field on the fabric attribute.
Does anyone know if this is possible? Is there a create_variation hook that I can leverage to add a price?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Create variable product with prices based on attributes’ is closed to new replies.