First version for save attributes and variant together