IUserChanges

A structure containing all changes the user made to the product when personalizing it. See the Handling Product Customization topic for details.

example
// Completing product customization.
editor.finishProductDesign()
    // If product customization is completed successfully.
    .then(function (result) {
        // Get the promise properties.
        stateId = result.stateId;
        userId = result.userId;
        userChanges = result.userChanges;
        console.log("Text user changes: ", userChanges.texts);
    })
    // If there was an error thrown when completing product customization.
    .catch(function (error) {
        console.error("Completing product customization failed with exception: ", error);
    });

Properties

inStringPlaceholders

inStringPlaceholders: object []

An array of texts entered by the user in text placeholders. For each text placeholder, which was changed by the user, corresponding object contains its name and new value.

inStringPlaceholders declaration

  • name: string
  • usersValue: string

texts

texts: object []

An array of texts entered by the user in text elements. For each text element, which was changed by the user, corresponding object contains its name and new value.

texts declaration

  • name: string
  • usersValue: string