You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

setTags Method

Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation

Callable

  • Specifies tags for the product.

    example
    var newTags = {
      "product": "postcard",
      "design": "flowers",
      "colorTheme": "red"
    };
    
    editor.getProduct()
        .then(function (product) {
            product.setTags(newTags)
            .catch(function (error) {
                console.error("Setting tags failed with exception: ", error);
            });
        })

    Parameters

    Returns Promise < void >