Change product type in python script

how can i change the product type in a python script?

I tried product.changeType(“Name in product type editor”), but this gave NameError: Attribute or method not found

1 Like

You can use vcProduct.changeType(vcProductType)
So instead of giving it the product type name, you need to find the type object from vcProductTypeManager first.

3 Likes

Thank you for the help Este!

1 Like