Add code to generate variants upon product creation and patching