Interface: ISaveProductOptions
Parameters defining how the personalization data should be applied.
Remarks
(Editor:class).saveProduct takes these options.
Example
// Saving a product to the "t-shirt.st" file.
editor.saveProduct("t-shirt");
Properties
storeDataInState?
optionalstoreDataInState?:boolean
if true, saves personalization data to state files. In this case, a state file will represent the initial product design without applying this data. If false, then the resulting state file will contain a set of personalized product copies but will not include the personalization data. The default value is true.
applyDataToVariablesOnly?
optionalapplyDataToVariablesOnly?:boolean
if false, applies personalization data to any field with the specified name; if true, the data applies only to fields marked as variable. The default value is false.