Skip to main content

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?

optional storeDataInState?: 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?

optional applyDataToVariablesOnly?: 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.

Was this page helpful?