# Class Product

- [TopLevel.Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)
  - [dw.object.PersistentObject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md)
    - [dw.object.ExtensibleObject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md)
      - [dw.catalog.Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)

Represents a product in Commerce Cloud Digital. Products are identified by
a unique product ID, sometimes called the SKU. There are several different
types of product:

- **Simple product**
- \*\*Master products:\*\*This type of product defines a template for a set  of related products which differ only by a set of defined  "variation attributes", such as size or color. Master products are not  orderable themselves. The variation information for a master product is  available through its [ProductVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductVariationModel.md).
- \*\*Variant:\*\*Variants are the actual orderable products that are  related to a master product. Each variant of a master product has a unique  set of values for the defined variation attributes. Variants are said to be  "mastered" by the corresponding master product.
- \*\*Option products:\*\*Option products define additional options, such  as a warranty, which can be purchased for a defined price at the time the  product is purchased. The option information for an option product is  available through its [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md).
- \*\*Product-sets:\*\*A product-set is a set of products which the  merchant can sell as a collection in the storefront, for example an outfit of  clothes. Product-sets are not orderable and therefore do not define prices.  They exist only to group the products together in the storefront UI. Members  of the set are called "product-set-products".
- \*\*Products bundles:\*\*A collection of products which can be ordered as  a single unit and therefore can define its own price and inventory record.

Product price and availability information are retrievable through
[getPriceModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpricemodel) and [getAvailabilityModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodel) respectively.
Attribute information is retrievable through [getAttributeModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getattributemodel).
Products may reference other products, either as recommendations or product
links. This class provides the methods for retrieving these referenced
products.

Products belong to a catalog (the "owning" catalog) and are assigned to
categories in other catalogs. Products assigned to categories in the site
catalog are typically orderable on the site.

Any API method which returns products will return an instance of a
[Variant](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Variant.md) for variant products. This subclass contains
methods which are specific to this type of product.

## All Known Subclasses

[Variant](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Variant.md), [VariationGroup](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.VariationGroup.md)

## Property Summary

| Property                                                                                                                                                                            | Description                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [EAN](#ean): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                                       | Returns the European Article Number of the product.                                                                                                              |
| [ID](#id): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                                         | Returns the ID of the product.                                                                                                                                   |
| [UPC](#upc): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                                       | Returns the Universal Product Code of the product.                                                                                                               |
| [activeData](#activedata): [ProductActiveData](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductActiveData.md) `(read-only)`                                 | Returns the active data for this product, for the current site.                                                                                                  |
| [allCategories](#allcategories): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                            | Returns a collection of all categories to which this product is assigned.                                                                                        |
| [allCategoryAssignments](#allcategoryassignments): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                          | Returns all category assignments for this product in any catalog.                                                                                                |
| [allIncomingProductLinks](#allincomingproductlinks): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                        | Returns all incoming ProductLinks.                                                                                                                               |
| [allProductLinks](#allproductlinks): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                        | Returns all outgoing ProductLinks.                                                                                                                               |
| [assignedToSiteCatalog](#assignedtositecatalog): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                 | Returns `true` if the product is assigned to the current site (via the site catalog), otherwise  `false` is returned.                                            |
| [attributeModel](#attributemodel): [ProductAttributeModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAttributeModel.md) `(read-only)`                 | Returns this product's ProductAttributeModel, which makes access to the  product attribute information convenient.                                               |
| [availabilityModel](#availabilitymodel): [ProductAvailabilityModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md) `(read-only)`     | Returns the availability model, which can be used to determine availability  information for a product.                                                          |
| ~~[available](#available): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~ `(read-only)`                                                     | Identifies if the product is available.                                                                                                                          |
| ~~[availableFlag](#availableflag): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~                                                           | Identifies if the product is available.                                                                                                                          |
| [brand](#brand): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                                   | Returns the Brand of the product.                                                                                                                                |
| [bundle](#bundle): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                               | Identifies if this product instance is a product bundle.                                                                                                         |
| [bundled](#bundled): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                             | Identifies if this product instance is bundled within at least one  product bundle.                                                                              |
| [bundledProducts](#bundledproducts): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                        | Returns a collection containing all products that participate in the  product bundle.                                                                            |
| [bundles](#bundles): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                                        | Returns a collection of all bundles in which this product is included.                                                                                           |
| [categories](#categories): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                                  | Returns a collection of all categories to which this product is assigned  and which are also available through the current site.                                 |
| [categorized](#categorized): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                     | Identifies if this product is bound to at least one catalog category.                                                                                            |
| [categoryAssignments](#categoryassignments): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                | Returns a collection of category assignments for this product in  the current site catalog.                                                                      |
| [classificationCategory](#classificationcategory): [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md) `(read-only)`                           | Returns the classification category associated with this Product.                                                                                                |
| [facebookEnabled](#facebookenabled): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                             | Identifies if the product is Facebook enabled.                                                                                                                   |
| ~~[image](#image): [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)~~ `(read-only)`                                                       | Returns the product's image.                                                                                                                                     |
| [incomingProductLinks](#incomingproductlinks): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                              | Returns incoming ProductLinks, where the source product is a site product.                                                                                       |
| [longDescription](#longdescription): [MarkupText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MarkupText.md) `(read-only)`                                     | Returns the product's long description in the current locale.                                                                                                    |
| [manufacturerName](#manufacturername): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                             | Returns the name of the product manufacturer.                                                                                                                    |
| [manufacturerSKU](#manufacturersku): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                               | Returns the value of the manufacturer's stock keeping unit.                                                                                                      |
| [master](#master): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                               | Identifies if this product instance is a product master.                                                                                                         |
| [minOrderQuantity](#minorderquantity): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`                                         | Returns the minimum order quantity for this product.                                                                                                             |
| [name](#name): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                                     | Returns the name of the product in the current locale.                                                                                                           |
| [online](#online): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                               | Returns the online status of the product.                                                                                                                        |
| [onlineCategories](#onlinecategories): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                      | Returns a collection of all currently online categories to which this  product is assigned and which are also available through the current  site.               |
| [onlineFlag](#onlineflag): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                       | Returns the online status flag of the product.                                                                                                                   |
| [onlineFrom](#onlinefrom): [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md) `(read-only)`                                                             | Returns the date from which the product is online or valid.                                                                                                      |
| [onlineTo](#onlineto): [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md) `(read-only)`                                                                 | Returns the date until which the product is online or valid.                                                                                                     |
| [optionModel](#optionmodel): [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md) `(read-only)`                             | Returns the product's option model.                                                                                                                              |
| [optionProduct](#optionproduct): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                 | Identifies if the product has options.                                                                                                                           |
| [orderableRecommendations](#orderablerecommendations): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                      | Returns a list of outgoing recommendations for this product.                                                                                                     |
| [pageDescription](#pagedescription): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                               | Returns product's page description in the default locale.                                                                                                        |
| [pageKeywords](#pagekeywords): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                     | Returns the product's page keywords in the default locale.                                                                                                       |
| [pageMetaTags](#pagemetatags): [Array](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Array.md) `(read-only)`                                                       | Returns all page meta tags, defined for this instance for which content can be generated.                                                                        |
| [pageTitle](#pagetitle): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                           | Returns the product's page title in the default locale.                                                                                                          |
| [pageURL](#pageurl): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                               | Returns the product's page URL in the default locale.                                                                                                            |
| [pinterestEnabled](#pinterestenabled): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                           | Identifies if the product is Pinterest enabled.                                                                                                                  |
| [priceModel](#pricemodel): [ProductPriceModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductPriceModel.md) `(read-only)`                                 | Returns the price model, which can be used to retrieve a price  for this product.                                                                                |
| [primaryCategory](#primarycategory): [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md) `(read-only)`                                         | Returns the primary category of the product within the current site catalog.                                                                                     |
| [primaryCategoryAssignment](#primarycategoryassignment): [CategoryAssignment](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.CategoryAssignment.md) `(read-only)` | Returns the category assignment to the primary category in the current site  catalog or null if no primary category is defined within the current site  catalog. |
| [product](#product): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                             | Returns 'true' if the instance represents a product.                                                                                                             |
| [productLinks](#productlinks): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                              | Returns all outgoing ProductLinks, where the target product is also  available in the current site.                                                              |
| [productSet](#productset): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                       | Returns 'true' if the instance represents a product set, otherwise 'false'.                                                                                      |
| [productSetProduct](#productsetproduct): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                         | Returns true if this product is part of any product set, otherwise false.                                                                                        |
| [productSetProducts](#productsetproducts): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                  | Returns a collection of all products which are assigned to this product  and which are also available through the current site.                                  |
| [productSets](#productsets): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                                | Returns a collection of all product sets in which this product is included.                                                                                      |
| [recommendations](#recommendations): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                        | Returns the outgoing recommendations for this product which  belong to the site catalog.                                                                         |
| ~~[retailSet](#retailset): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~ `(read-only)`                                                     | Identifies if this product instance is part of a retail set.                                                                                                     |
| [searchPlacement](#searchplacement): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`                                               | Returns the product's search placement classification.                                                                                                           |
| [searchRank](#searchrank): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`                                                         | Returns the product's search rank.                                                                                                                               |
| [searchable](#searchable): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                       | Identifies if the product is searchable.                                                                                                                         |
| [searchableFlag](#searchableflag): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                               | Returns, whether the product is currently searchable.                                                                                                            |
| [searchableIfUnavailableFlag](#searchableifunavailableflag): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                     | Returns the searchable status of the [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md) if unavailable.                      |
| [shortDescription](#shortdescription): [MarkupText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MarkupText.md) `(read-only)`                                   | Returns the product's short description in the current locale.                                                                                                   |
| [siteMapChangeFrequency](#sitemapchangefrequency): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                 | Returns the product's change frequency needed for the sitemap creation.                                                                                          |
| [siteMapIncluded](#sitemapincluded): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`                                               | Returns the status if the product is included into the sitemap.                                                                                                  |
| [siteMapPriority](#sitemappriority): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`                                               | Returns the product's priority needed for the sitemap creation.                                                                                                  |
| ~~[siteProduct](#siteproduct): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~ `(read-only)`                                                 | Returns 'true' if the product is assigned to the current site (via the  site catalog), otherwise 'false' is returned.                                            |
| [stepQuantity](#stepquantity): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`                                                 | Returns the steps in which the order amount of the product can be  increased.                                                                                    |
| [storeReceiptName](#storereceiptname): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                             | Returns the store receipt name of the product in the current locale.                                                                                             |
| [storeTaxClass](#storetaxclass): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                   | Returns the store tax class ID.                                                                                                                                  |
| [taxClassID](#taxclassid): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                         | Returns the ID of the product's tax class, by resolving  the Global Preference setting selected.                                                                 |
| [template](#template): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                             | Returns the name of the product's rendering template.                                                                                                            |
| ~~[thumbnail](#thumbnail): [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)~~ `(read-only)`                                               | Returns the product's thumbnail image.                                                                                                                           |
| [unit](#unit): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                                                     | Returns the product's sales unit.                                                                                                                                |
| [unitQuantity](#unitquantity): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`                                                 | Returns the product's unit quantity.                                                                                                                             |
| [variant](#variant): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                                             | Identifies if this product instance is mastered by a product master.                                                                                             |
| [variants](#variants): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                                      | Returns a collection of all variants assigned to this variation master  or variation group product.                                                              |
| [variationGroup](#variationgroup): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`                                               | Identifies if this product instance is a variation group product.                                                                                                |
| [variationGroups](#variationgroups): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                                        | Returns a collection of all variation groups assigned to this variation  master product.                                                                         |
| [variationModel](#variationmodel): [ProductVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductVariationModel.md) `(read-only)`                 | Returns the variation model of this product.                                                                                                                     |

## Constructor Summary

This class does not have a constructor, so you cannot create it directly.

## Method Summary

| Method                                                                                                                                                                                                                                                                                                               | Description                                                                                                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ~~[assignedToCategory](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#assignedtocategorycategory)([Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md))~~                                                                                           | Identifies if this product is bound to the specified catalog category.                                                                                                          |
| [getActiveData](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getactivedata)()                                                                                                                                                                                                         | Returns the active data for this product, for the current site.                                                                                                                 |
| [getAllCategories](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallcategories)()                                                                                                                                                                                                   | Returns a collection of all categories to which this product is assigned.                                                                                                       |
| [getAllCategoryAssignments](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallcategoryassignments)()                                                                                                                                                                                 | Returns all category assignments for this product in any catalog.                                                                                                               |
| [getAllIncomingProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallincomingproductlinks)()                                                                                                                                                                               | Returns all incoming ProductLinks.                                                                                                                                              |
| [getAllIncomingProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallincomingproductlinksnumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                       | Returns all incoming ProductLinks of a specific type.                                                                                                                           |
| [getAllProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallproductlinks)()                                                                                                                                                                                               | Returns all outgoing ProductLinks.                                                                                                                                              |
| [getAllProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallproductlinksnumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                                       | Returns all outgoing ProductLinks of a specific type.                                                                                                                           |
| [getAllRecommendations](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallrecommendationscatalog)([Catalog](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Catalog.md))                                                                                            | Returns the outgoing recommendations for this product which belong to the  specified catalog.                                                                                   |
| [getAllRecommendations](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getallrecommendationscatalog-number)([Catalog](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Catalog.md), [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)) | Returns the outgoing recommendations for this product which are of the  specified type and which belong to the specified catalog.                                               |
| [getAttributeModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getattributemodel)()                                                                                                                                                                                                 | Returns this product's ProductAttributeModel, which makes access to the  product attribute information convenient.                                                              |
| [getAvailabilityModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodel)()                                                                                                                                                                                           | Returns the availability model, which can be used to determine availability  information for a product.                                                                         |
| [getAvailabilityModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodelproductinventorylist)([ProductInventoryList](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductInventoryList.md))                                                       | Returns the availability model of the given inventory list, which can be  used to determine availability information for a product.                                             |
| ~~[getAvailableFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailableflag)()~~                                                                                                                                                                                               | Identifies if the product is available.                                                                                                                                         |
| [getBrand](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getbrand)()                                                                                                                                                                                                                   | Returns the Brand of the product.                                                                                                                                               |
| [getBundledProductQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getbundledproductquantityproduct)([Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md))                                                                                    | Returns the quantity of the specified product within the bundle.                                                                                                                |
| [getBundledProducts](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getbundledproducts)()                                                                                                                                                                                               | Returns a collection containing all products that participate in the  product bundle.                                                                                           |
| [getBundles](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getbundles)()                                                                                                                                                                                                               | Returns a collection of all bundles in which this product is included.                                                                                                          |
| [getCategories](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getcategories)()                                                                                                                                                                                                         | Returns a collection of all categories to which this product is assigned  and which are also available through the current site.                                                |
| [getCategoryAssignment](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getcategoryassignmentcategory)([Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md))                                                                                         | Returns the category assignment for a specific category.                                                                                                                        |
| [getCategoryAssignments](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getcategoryassignments)()                                                                                                                                                                                       | Returns a collection of category assignments for this product in  the current site catalog.                                                                                     |
| [getClassificationCategory](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getclassificationcategory)()                                                                                                                                                                                 | Returns the classification category associated with this Product.                                                                                                               |
| [getEAN](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getean)()                                                                                                                                                                                                                       | Returns the European Article Number of the product.                                                                                                                             |
| [getID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getid)()                                                                                                                                                                                                                         | Returns the ID of the product.                                                                                                                                                  |
| ~~[getImage](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimage)()~~                                                                                                                                                                                                               | Returns the product's image.                                                                                                                                                    |
| [getImage](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                                                                                                                           | The method calls [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and returns the first image.                  |
| [getImage](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagestring-number)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md), [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                | The method calls [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and returns the image at  the specific index. |
| [getImages](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                                                                                                                         | Returns all images assigned to this product for a specific view type,  e.g.                                                                                                     |
| [getIncomingProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getincomingproductlinks)()                                                                                                                                                                                     | Returns incoming ProductLinks, where the source product is a site product.                                                                                                      |
| [getIncomingProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getincomingproductlinksnumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                             | Returns incoming ProductLinks, where the source product is a site product  of a specific type.                                                                                  |
| [getLongDescription](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getlongdescription)()                                                                                                                                                                                               | Returns the product's long description in the current locale.                                                                                                                   |
| [getManufacturerName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getmanufacturername)()                                                                                                                                                                                             | Returns the name of the product manufacturer.                                                                                                                                   |
| [getManufacturerSKU](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getmanufacturersku)()                                                                                                                                                                                               | Returns the value of the manufacturer's stock keeping unit.                                                                                                                     |
| [getMinOrderQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getminorderquantity)()                                                                                                                                                                                             | Returns the minimum order quantity for this product.                                                                                                                            |
| [getName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getname)()                                                                                                                                                                                                                     | Returns the name of the product in the current locale.                                                                                                                          |
| [getOnlineCategories](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getonlinecategories)()                                                                                                                                                                                             | Returns a collection of all currently online categories to which this  product is assigned and which are also available through the current  site.                              |
| [getOnlineFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getonlineflag)()                                                                                                                                                                                                         | Returns the online status flag of the product.                                                                                                                                  |
| [getOnlineFrom](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getonlinefrom)()                                                                                                                                                                                                         | Returns the date from which the product is online or valid.                                                                                                                     |
| [getOnlineTo](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getonlineto)()                                                                                                                                                                                                             | Returns the date until which the product is online or valid.                                                                                                                    |
| [getOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getoptionmodel)()                                                                                                                                                                                                       | Returns the product's option model.                                                                                                                                             |
| [getOrderableRecommendations](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getorderablerecommendations)()                                                                                                                                                                             | Returns a list of outgoing recommendations for this product.                                                                                                                    |
| [getOrderableRecommendations](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getorderablerecommendationsnumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                     | Returns a list of outgoing recommendations for this product.                                                                                                                    |
| [getPageDescription](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpagedescription)()                                                                                                                                                                                               | Returns product's page description in the default locale.                                                                                                                       |
| [getPageKeywords](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpagekeywords)()                                                                                                                                                                                                     | Returns the product's page keywords in the default locale.                                                                                                                      |
| [getPageMetaTag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpagemetatagstring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                                                                                                               | Returns the page meta tag for the specified id.                                                                                                                                 |
| [getPageMetaTags](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpagemetatags)()                                                                                                                                                                                                     | Returns all page meta tags, defined for this instance for which content can be generated.                                                                                       |
| [getPageTitle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpagetitle)()                                                                                                                                                                                                           | Returns the product's page title in the default locale.                                                                                                                         |
| [getPageURL](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpageurl)()                                                                                                                                                                                                               | Returns the product's page URL in the default locale.                                                                                                                           |
| [getPriceModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpricemodel)()                                                                                                                                                                                                         | Returns the price model, which can be used to retrieve a price  for this product.                                                                                               |
| [getPriceModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getpricemodelproductoptionmodel)([ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md))                                                                           | Returns the price model based on the specified optionModel.                                                                                                                     |
| [getPrimaryCategory](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getprimarycategory)()                                                                                                                                                                                               | Returns the primary category of the product within the current site catalog.                                                                                                    |
| [getPrimaryCategoryAssignment](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getprimarycategoryassignment)()                                                                                                                                                                           | Returns the category assignment to the primary category in the current site  catalog or null if no primary category is defined within the current site  catalog.                |
| [getProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getproductlinks)()                                                                                                                                                                                                     | Returns all outgoing ProductLinks, where the target product is also  available in the current site.                                                                             |
| [getProductLinks](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getproductlinksnumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                                             | Returns all outgoing ProductLinks of a specific type, where the target  product is also available in the current site.                                                          |
| [getProductSetProducts](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getproductsetproducts)()                                                                                                                                                                                         | Returns a collection of all products which are assigned to this product  and which are also available through the current site.                                                 |
| [getProductSets](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getproductsets)()                                                                                                                                                                                                       | Returns a collection of all product sets in which this product is included.                                                                                                     |
| [getRecommendations](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getrecommendations)()                                                                                                                                                                                               | Returns the outgoing recommendations for this product which  belong to the site catalog.                                                                                        |
| [getRecommendations](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getrecommendationsnumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                                       | Returns the outgoing recommendations for this product which are of the  specified type and which belong to the site catalog.                                                    |
| [getSearchPlacement](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsearchplacement)()                                                                                                                                                                                               | Returns the product's search placement classification.                                                                                                                          |
| [getSearchRank](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsearchrank)()                                                                                                                                                                                                         | Returns the product's search rank.                                                                                                                                              |
| [getSearchableFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsearchableflag)()                                                                                                                                                                                                 | Returns, whether the product is currently searchable.                                                                                                                           |
| [getSearchableIfUnavailableFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsearchableifunavailableflag)()                                                                                                                                                                       | Returns the searchable status of the [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md) if unavailable.                                     |
| [getShortDescription](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getshortdescription)()                                                                                                                                                                                             | Returns the product's short description in the current locale.                                                                                                                  |
| [getSiteMapChangeFrequency](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsitemapchangefrequency)()                                                                                                                                                                                 | Returns the product's change frequency needed for the sitemap creation.                                                                                                         |
| [getSiteMapIncluded](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsitemapincluded)()                                                                                                                                                                                               | Returns the status if the product is included into the sitemap.                                                                                                                 |
| [getSiteMapPriority](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getsitemappriority)()                                                                                                                                                                                               | Returns the product's priority needed for the sitemap creation.                                                                                                                 |
| [getStepQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getstepquantity)()                                                                                                                                                                                                     | Returns the steps in which the order amount of the product can be  increased.                                                                                                   |
| [getStoreReceiptName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getstorereceiptname)()                                                                                                                                                                                             | Returns the store receipt name of the product in the current locale.                                                                                                            |
| [getStoreTaxClass](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getstoretaxclass)()                                                                                                                                                                                                   | Returns the store tax class ID.                                                                                                                                                 |
| [getTaxClassID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#gettaxclassid)()                                                                                                                                                                                                         | Returns the ID of the product's tax class, by resolving  the Global Preference setting selected.                                                                                |
| [getTemplate](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#gettemplate)()                                                                                                                                                                                                             | Returns the name of the product's rendering template.                                                                                                                           |
| ~~[getThumbnail](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getthumbnail)()~~                                                                                                                                                                                                       | Returns the product's thumbnail image.                                                                                                                                          |
| [getUPC](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getupc)()                                                                                                                                                                                                                       | Returns the Universal Product Code of the product.                                                                                                                              |
| [getUnit](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getunit)()                                                                                                                                                                                                                     | Returns the product's sales unit.                                                                                                                                               |
| [getUnitQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getunitquantity)()                                                                                                                                                                                                     | Returns the product's unit quantity.                                                                                                                                            |
| [getVariants](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getvariants)()                                                                                                                                                                                                             | Returns a collection of all variants assigned to this variation master  or variation group product.                                                                             |
| [getVariationGroups](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getvariationgroups)()                                                                                                                                                                                               | Returns a collection of all variation groups assigned to this variation  master product.                                                                                        |
| [getVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getvariationmodel)()                                                                                                                                                                                                 | Returns the variation model of this product.                                                                                                                                    |
| [includedInBundle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#includedinbundleproduct)([Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md))                                                                                                      | Identifies if the specified product participates in this product bundle.                                                                                                        |
| [isAssignedToCategory](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isassignedtocategorycategory)([Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md))                                                                                           | Returns 'true' if item is assigned to the specified  category.                                                                                                                  |
| [isAssignedToSiteCatalog](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isassignedtositecatalog)()                                                                                                                                                                                     | Returns `true` if the product is assigned to the current site (via the site catalog), otherwise  `false` is returned.                                                           |
| ~~[isAvailable](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isavailable)()~~                                                                                                                                                                                                         | Identifies if the product is available.                                                                                                                                         |
| [isBundle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isbundle)()                                                                                                                                                                                                                   | Identifies if this product instance is a product bundle.                                                                                                                        |
| [isBundled](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isbundled)()                                                                                                                                                                                                                 | Identifies if this product instance is bundled within at least one  product bundle.                                                                                             |
| [isCategorized](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#iscategorized)()                                                                                                                                                                                                         | Identifies if this product is bound to at least one catalog category.                                                                                                           |
| [isFacebookEnabled](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isfacebookenabled)()                                                                                                                                                                                                 | Identifies if the product is Facebook enabled.                                                                                                                                  |
| [isMaster](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#ismaster)()                                                                                                                                                                                                                   | Identifies if this product instance is a product master.                                                                                                                        |
| [isOnline](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isonline)()                                                                                                                                                                                                                   | Returns the online status of the product.                                                                                                                                       |
| [isOptionProduct](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isoptionproduct)()                                                                                                                                                                                                     | Identifies if the product has options.                                                                                                                                          |
| [isPinterestEnabled](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#ispinterestenabled)()                                                                                                                                                                                               | Identifies if the product is Pinterest enabled.                                                                                                                                 |
| [isProduct](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproduct)()                                                                                                                                                                                                                 | Returns 'true' if the instance represents a product.                                                                                                                            |
| [isProductSet](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproductset)()                                                                                                                                                                                                           | Returns 'true' if the instance represents a product set, otherwise 'false'.                                                                                                     |
| [isProductSetProduct](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproductsetproduct)()                                                                                                                                                                                             | Returns true if this product is part of any product set, otherwise false.                                                                                                       |
| ~~[isRetailSet](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isretailset)()~~                                                                                                                                                                                                         | Identifies if this product instance is part of a retail set.                                                                                                                    |
| [isSearchable](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#issearchable)()                                                                                                                                                                                                           | Identifies if the product is searchable.                                                                                                                                        |
| ~~[isSiteProduct](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#issiteproduct)()~~                                                                                                                                                                                                     | Returns 'true' if the product is assigned to the current site (via the  site catalog), otherwise 'false' is returned.                                                           |
| [isVariant](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isvariant)()                                                                                                                                                                                                                 | Identifies if this product instance is mastered by a product master.                                                                                                            |
| [isVariationGroup](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isvariationgroup)()                                                                                                                                                                                                   | Identifies if this product instance is a variation group product.                                                                                                               |
| ~~[setAvailableFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setavailableflagboolean)([Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md))~~                                                                                                    | Set the availability status flag of the product.                                                                                                                                |
| [setOnlineFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setonlineflagboolean---variant-1)([Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md))                                                                                                  | Set the online status flag of the product.                                                                                                                                      |
| [setOnlineFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setonlineflagboolean---variant-2)([Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md))                                                                                                  | Set the online status flag of the product for the current site.                                                                                                                 |
| [setSearchPlacement](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setsearchplacementnumber---variant-1)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                           | Set the product's search placement.                                                                                                                                             |
| [setSearchPlacement](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setsearchplacementnumber---variant-2)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                           | Set the product's search placement classification in context of the current site.                                                                                               |
| [setSearchRank](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setsearchranknumber---variant-1)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                                     | Set the product's search rank.                                                                                                                                                  |
| [setSearchRank](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setsearchranknumber---variant-2)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                                     | Set the product's search rank in context of the current site.                                                                                                                   |
| [setSearchableFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setsearchableflagboolean---variant-1)([Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md))                                                                                          | Set the flag indicating whether the product is searchable or not.                                                                                                               |
| [setSearchableFlag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#setsearchableflagboolean---variant-2)([Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md))                                                                                          | Set the flag indicating whether the product is searchable or not in context of the current site.                                                                                |

### Methods inherited from class ExtensibleObject

[describe](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md#describe), [getCustom](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md#getcustom)

### Methods inherited from class PersistentObject

[getCreationDate](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getcreationdate), [getLastModified](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getlastmodified), [getUUID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getuuid)

### Methods inherited from class Object

[assign](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#assignobject-object), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject-object), [defineProperties](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertiesobject-object), [defineProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertyobject-object-object), [entries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#entriesobject), [freeze](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#freezeobject), [fromEntries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#hasownpropertystring), [is](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isobject-object), [isExtensible](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isextensibleobject), [isFrozen](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isfrozenobject), [isPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isprototypeofobject), [isSealed](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#issealedobject), [keys](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#keysobject), [preventExtensions](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#propertyisenumerablestring), [seal](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#sealobject), [setPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tolocalestring), [toString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tostring), [valueOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valueof), [values](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valuesobject)

## Property Details

### EAN

- EAN: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the European Article Number of the product.

***

### ID

- ID: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the ID of the product.

***

### UPC

- UPC: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the Universal Product Code of the product.

***

### activeData

- activeData: [ProductActiveData](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductActiveData.md) `(read-only)`
  - : Returns the active data for this product, for the current site.

***

### allCategories

- allCategories: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all categories to which this product is assigned.

***

### allCategoryAssignments

- allCategoryAssignments: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns all category assignments for this product in any catalog.

***

### allIncomingProductLinks

- allIncomingProductLinks: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns all incoming ProductLinks.

***

### allProductLinks

- allProductLinks: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns all outgoing ProductLinks.

***

### assignedToSiteCatalog

- assignedToSiteCatalog: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns `true` if the product is assigned to the current site (via the site catalog), otherwise
    `false` is returned.

    In case of the product being a variant, the variant will be considered as assigned if its master, one of the
    variation groups it is in or itself is assigned to the site catalog. In case this is triggered for a variation
    group the variation group is considered as assigned if its master or itself is assigned.

***

### attributeModel

- attributeModel: [ProductAttributeModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAttributeModel.md) `(read-only)`
  - : Returns this product's ProductAttributeModel, which makes access to the
    product attribute information convenient. The model is calculated based
    on the product attributes assigned to this product's classification
    category (or any of it's ancestors) and the global attribute definitions
    for the system object type 'Product'. If this product has no
    classification category, the attribute model is calculated on the global
    attribute definitions only. If this product is a variant, then the
    attribute model is calculated based on the classification category of its
    corresponding master product.

***

### availabilityModel

- availabilityModel: [ProductAvailabilityModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md) `(read-only)`
  - : Returns the availability model, which can be used to determine availability
    information for a product.

***

### available

- ~~available: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~ `(read-only)`
  - : Identifies if the product is available.

    **Deprecated:**

:::warning
Use [getAvailabilityModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodel).isInStock() instead
:::

***

### availableFlag

- ~~availableFlag: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~
  - : Identifies if the product is available.

    **Deprecated:**

:::warning
Use [getAvailabilityModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodel) instead.
:::

***

### brand

- brand: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the Brand of the product.

***

### bundle

- bundle: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if this product instance is a product bundle.

***

### bundled

- bundled: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if this product instance is bundled within at least one
    product bundle.

***

### bundledProducts

- bundledProducts: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection containing all products that participate in the
    product bundle.

***

### bundles

- bundles: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all bundles in which this product is included.
    The method only returns bundles assigned to the current site.

***

### categories

- categories: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all categories to which this product is assigned
    and which are also available through the current site.

***

### categorized

- categorized: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if this product is bound to at least one catalog category.

***

### categoryAssignments

- categoryAssignments: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of category assignments for this product in
    the current site catalog.

***

### classificationCategory

- classificationCategory: [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md) `(read-only)`
  - : Returns the classification category associated with this Product. A
    product has a single classification category which may or may not be in
    the site catalog. The classification category defines the attribute set
    of the product. See [getAttributeModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getattributemodel) for
    how the classification category is used.

***

### facebookEnabled

- facebookEnabled: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if the product is Facebook enabled.

***

### image

- ~~image: [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)~~ `(read-only)`
  - : Returns the product's image.

    **Deprecated:**

:::warning
Commerce Cloud Digital introduces a new more powerful product
image management. It allows to group product images by self-defined view types
(e.g. 'large', 'thumbnail', 'swatch') and variation values (e.g. for attribute
color 'red', 'blue'). Images can be annotated with pattern based title and
alt. Product images can be accessed from Digital locations or external storage
locations.

Please use the new product image management. Therefore you have to set
up the common product image settings like view types, image location,
default image alt and title for your catalogs first. After that you can
group your product images by the previously defined view types in context
of a product. Finally use [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and
[getImage(String, Number)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagestring-number) to access your images.
:::

***

### incomingProductLinks

- incomingProductLinks: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns incoming ProductLinks, where the source product is a site product.

***

### longDescription

- longDescription: [MarkupText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MarkupText.md) `(read-only)`
  - : Returns the product's long description in the current locale.

***

### manufacturerName

- manufacturerName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the name of the product manufacturer.

***

### manufacturerSKU

- manufacturerSKU: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the value of the manufacturer's stock keeping unit.

***

### master

- master: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if this product instance is a product master.

***

### minOrderQuantity

- minOrderQuantity: [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`
  - : Returns the minimum order quantity for this product.

***

### name

- name: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the name of the product in the current locale.

***

### online

- online: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns the online status of the product. The online status
    is calculated from the online status flag and the onlineFrom
    onlineTo dates defined for the product.

***

### onlineCategories

- onlineCategories: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all currently online categories to which this
    product is assigned and which are also available through the current
    site. A category is currently online if its online flag equals true and
    the current site date is within the date range defined by the onlineFrom
    and onlineTo attributes.

***

### onlineFlag

- onlineFlag: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns the online status flag of the product.

***

### onlineFrom

- onlineFrom: [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md) `(read-only)`
  - : Returns the date from which the product is online or valid.

***

### onlineTo

- onlineTo: [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md) `(read-only)`
  - : Returns the date until which the product is online or valid.

***

### optionModel

- optionModel: [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md) `(read-only)`
  - : Returns the product's option model. The option values selections are
    initialized with the values defined for the product, or the default values
    defined for the option.

***

### optionProduct

- optionProduct: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if the product has options.

***

### orderableRecommendations

- orderableRecommendations: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a list of outgoing recommendations for this product. This method
    behaves similarly to [getRecommendations()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getrecommendations) but additionally filters out
    recommendations for which the target product is unorderable according to
    its product availability model.

    **See Also:**

    - [ProductAvailabilityModel.isOrderable()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md#isorderable)

***

### pageDescription

- pageDescription: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns product's page description in the default locale.

***

### pageKeywords

- pageKeywords: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the product's page keywords in the default locale.

***

### pageMetaTags

- pageMetaTags: [Array](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Array.md) `(read-only)`
  - : Returns all page meta tags, defined for this instance for which content can be generated.

    The meta tag content is generated based on the product detail page meta tag context and rules. The rules are
    obtained from the current product context or inherited from variation groups, master product, the primary
    category, up to the root category.

***

### pageTitle

- pageTitle: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the product's page title in the default locale.

***

### pageURL

- pageURL: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the product's page URL in the default locale.

***

### pinterestEnabled

- pinterestEnabled: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if the product is Pinterest enabled.

***

### priceModel

- priceModel: [ProductPriceModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductPriceModel.md) `(read-only)`
  - : Returns the price model, which can be used to retrieve a price
    for this product.

***

### primaryCategory

- primaryCategory: [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md) `(read-only)`
  - : Returns the primary category of the product within the current site catalog.

***

### primaryCategoryAssignment

- primaryCategoryAssignment: [CategoryAssignment](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.CategoryAssignment.md) `(read-only)`
  - : Returns the category assignment to the primary category in the current site
    catalog or null if no primary category is defined within the current site
    catalog.

***

### product

- product: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns 'true' if the instance represents a product. Returns 'false' if
    the instance represents a product set.

    **See Also:**

    - [isProductSet()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproductset)

***

### productLinks

- productLinks: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns all outgoing ProductLinks, where the target product is also
    available in the current site. The ProductLinks are unsorted.

***

### productSet

- productSet: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns 'true' if the instance represents a product set, otherwise 'false'.

    **See Also:**

    - [isProduct()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproduct)

***

### productSetProduct

- productSetProduct: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns true if this product is part of any product set, otherwise false.

***

### productSetProducts

- productSetProducts: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all products which are assigned to this product
    and which are also available through the current site.  If this product
    does not represent a product set then an empty collection will be
    returned.

***

### productSets

- productSets: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all product sets in which this product is included.
    The method only returns product sets assigned to the current site.

***

### recommendations

- recommendations: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns the outgoing recommendations for this product which
    belong to the site catalog.  If this product is not assigned to the site
    catalog, or there is no site catalog, an empty collection is returned.
    Only recommendations for which the target product exists and is assigned
    to the site catalog are returned.  The recommendations are sorted by
    their explicitly set order.

***

### retailSet

- ~~retailSet: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~ `(read-only)`
  - : Identifies if this product instance is part of a retail set.

    **Deprecated:**

:::warning
Use [isProductSet()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproductset) instead
:::

***

### searchPlacement

- searchPlacement: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`
  - : Returns the product's search placement classification. The higher the
    numeric product placement value, the more relevant is the product when
    sorting search results. The range of numeric placement values is
    defined in the meta data of object type 'Product' and can therefore be
    customized.

***

### searchRank

- searchRank: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`
  - : Returns the product's search rank. The higher the numeric product rank,
    the more relevant is the product when sorting search results. The range of
    numeric rank values is defined in the meta data of object type 'Product'
    and can therefore be customized.

***

### searchable

- searchable: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if the product is searchable.

***

### searchableFlag

- searchableFlag: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns, whether the product is currently searchable.

***

### searchableIfUnavailableFlag

- searchableIfUnavailableFlag: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Returns the searchable status of the [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md) if unavailable.

    Besides `true` or `false`, the return value `null` indicates that the value is not set.

***

### shortDescription

- shortDescription: [MarkupText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MarkupText.md) `(read-only)`
  - : Returns the product's short description in the current locale.

***

### siteMapChangeFrequency

- siteMapChangeFrequency: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the product's change frequency needed for the sitemap creation.

***

### siteMapIncluded

- siteMapIncluded: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`
  - : Returns the status if the product is included into the sitemap.

***

### siteMapPriority

- siteMapPriority: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`
  - : Returns the product's priority needed for the sitemap creation.

***

### siteProduct

- ~~siteProduct: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~ `(read-only)`
  - : Returns 'true' if the product is assigned to the current site (via the
    site catalog), otherwise 'false' is returned.

    **Deprecated:**

:::warning
Use [isAssignedToSiteCatalog()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isassignedtositecatalog) instead
:::

***

### stepQuantity

- stepQuantity: [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`
  - : Returns the steps in which the order amount of the product can be
    increased.

***

### storeReceiptName

- storeReceiptName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the store receipt name of the product in the current locale.

***

### storeTaxClass

- storeTaxClass: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the store tax class ID.

    This is an optional override for in-store tax calculation.

***

### taxClassID

- taxClassID: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the ID of the product's tax class, by resolving
    the Global Preference setting selected. If the Localized
    Tax Class setting under Global Preferences -> Products is
    selected, the localizedTaxClassID attribute value will be
    returned, else the legacy taxClassID attribute value will
    be returned.

***

### template

- template: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the name of the product's rendering template.

***

### thumbnail

- ~~thumbnail: [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)~~ `(read-only)`
  - : Returns the product's thumbnail image.

    **Deprecated:**

:::warning
Commerce Cloud Digital introduces a new more powerful product
image management. It allows to group product images by self-defined view types
(e.g. 'large', 'thumbnail', 'swatch') and variation values (e.g. for attribute
color 'red', 'blue'). Images can be annotated with pattern based title and
alt. Product images can be accessed from Digital locations or external storage
locations.

Please use the new product image management. Therefore you have to set
up the common product image settings like view types, image location,
default image alt and title for your catalogs first. After that you can
group your product images by the previously defined view types in context
of a product. Finally use [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and
[getImage(String, Number)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagestring-number) to access your images.
:::

***

### unit

- unit: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the product's sales unit.

***

### unitQuantity

- unitQuantity: [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`
  - : Returns the product's unit quantity.

***

### variant

- variant: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if this product instance is mastered by a product master.

***

### variants

- variants: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all variants assigned to this variation master
    or variation group product. All variants are returned regardless of whether
    they are online or offline.

    If this product does not represent a variation master or variation group
    product then an empty collection is returned.

***

### variationGroup

- variationGroup: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md) `(read-only)`
  - : Identifies if this product instance is a variation group product.

***

### variationGroups

- variationGroups: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns a collection of all variation groups assigned to this variation
    master product. All variation groups are returned regardless of whether
    they are online or offline.

    If this product does not represent a variation master product then an
    empty collection is returned.

***

### variationModel

- variationModel: [ProductVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductVariationModel.md) `(read-only)`
  - : Returns the variation model of this product. If this product is a master
    product, then the returned model will encapsulate all the information
    about its variation attributes and variants. If this product is a variant
    product, then the returned model will encapsulate all the same
    information, but additionally pre-select all the variation attribute
    values of this variant. (See [ProductVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductVariationModel.md) for
    details on what "selected" means.) If this product is neither a master
    product or a variation product, then a model will be returned but will be
    essentially empty and not useful for any particular purpose.

***

## Method Details

### assignedToCategory(Category)

- ~~assignedToCategory(category: [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md)): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~
  - : Identifies if this product is bound to the specified catalog category.

    **Parameters:**

    - category - the CatalogCategory to check.

    **Returns:**

    - true if the product is bound to the CatalogCategory, false
      otherwise.

    **Deprecated:**

:::warning
Use [isAssignedToCategory(Category)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isassignedtocategorycategory)
:::

***

### getActiveData()

- getActiveData(): [ProductActiveData](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductActiveData.md)
  - : Returns the active data for this product, for the current site.

    **Returns:**

    - the active data for this product for the current site.

***

### getAllCategories()

- getAllCategories(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all categories to which this product is assigned.

    **Returns:**

    - Collection of categories.

***

### getAllCategoryAssignments()

- getAllCategoryAssignments(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all category assignments for this product in any catalog.

    **Returns:**

    - Collection of category assignments of the product in any catalog.

***

### getAllIncomingProductLinks()

- getAllIncomingProductLinks(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all incoming ProductLinks.

    **Returns:**

    - a collection of all incoming ProductLinks.

***

### getAllIncomingProductLinks(Number)

- getAllIncomingProductLinks(type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all incoming ProductLinks of a specific type.

    **Parameters:**

    - type - the type of ProductLinks to use.

    **Returns:**

    - a collection of all incoming ProductLinks of a specific type.

***

### getAllProductLinks()

- getAllProductLinks(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all outgoing ProductLinks.

    **Returns:**

    - a collection of all outgoing ProductLinks.

***

### getAllProductLinks(Number)

- getAllProductLinks(type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all outgoing ProductLinks of a specific type.

    **Parameters:**

    - type - the type of ProductLinks to fetch.

    **Returns:**

    - a collection of all outgoing ProductLinks of a specific type.

***

### getAllRecommendations(Catalog)

- getAllRecommendations(catalog: [Catalog](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Catalog.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns the outgoing recommendations for this product which belong to the
    specified catalog. The recommendations are sorted by their explicitly set
    order.

    **Parameters:**

    - catalog - the catalog containing the recommendations.

    **Returns:**

    - the sorted collection of recommendations, never null but possibly empty.

***

### getAllRecommendations(Catalog, Number)

- getAllRecommendations(catalog: [Catalog](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Catalog.md), type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns the outgoing recommendations for this product which are of the
    specified type and which belong to the specified catalog.
    The recommendations are sorted by their explicitly set order.

    **Parameters:**

    - catalog - the catalog containing the recommendations.
    - type - the recommendation type.

    **Returns:**

    - the sorted collection of recommendations, never null but possibly empty.

***

### getAttributeModel()

- getAttributeModel(): [ProductAttributeModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAttributeModel.md)
  - : Returns this product's ProductAttributeModel, which makes access to the
    product attribute information convenient. The model is calculated based
    on the product attributes assigned to this product's classification
    category (or any of it's ancestors) and the global attribute definitions
    for the system object type 'Product'. If this product has no
    classification category, the attribute model is calculated on the global
    attribute definitions only. If this product is a variant, then the
    attribute model is calculated based on the classification category of its
    corresponding master product.

    **Returns:**

    - the ProductAttributeModel for this product.

***

### getAvailabilityModel()

- getAvailabilityModel(): [ProductAvailabilityModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md)
  - : Returns the availability model, which can be used to determine availability
    information for a product.

    **Returns:**

    - the availability model for a product.

***

### getAvailabilityModel(ProductInventoryList)

- getAvailabilityModel(list: [ProductInventoryList](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductInventoryList.md)): [ProductAvailabilityModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md)
  - : Returns the availability model of the given inventory list, which can be
    used to determine availability information for a product.

    **Parameters:**

    - list - The inventory list to get the availability model for. Must             not be null or an exception will be raised.

    **Returns:**

    - the availability model of the given inventory list for a product.

***

### getAvailableFlag()

- ~~getAvailableFlag(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~
  - : Identifies if the product is available.

    **Returns:**

    - the availability status flag of the product.

    **Deprecated:**

:::warning
Use [getAvailabilityModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodel) instead.
:::

***

### getBrand()

- getBrand(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Brand of the product.

    **Returns:**

    - the Brand of the product.

***

### getBundledProductQuantity(Product)

- getBundledProductQuantity(aProduct: [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the quantity of the specified product within the bundle. If the
    specified product is not part of the bundle, a 0 quantity is returned.

    **Parameters:**

    - aProduct - The product to determine the quantity for.

    **Returns:**

    - The quantity of the product within the bundle or 0 if the product
      is not part of the bundle.

***

### getBundledProducts()

- getBundledProducts(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection containing all products that participate in the
    product bundle.

    **Returns:**

    - A collection containing all products of the product bundle.

***

### getBundles()

- getBundles(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all bundles in which this product is included.
    The method only returns bundles assigned to the current site.

    **Returns:**

    - Collection of bundles in which this product is included, possibly empty.

***

### getCategories()

- getCategories(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all categories to which this product is assigned
    and which are also available through the current site.

    **Returns:**

    - Collection of categories to which this product is assigned
      and which are also available through the current site.

***

### getCategoryAssignment(Category)

- getCategoryAssignment(category: [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md)): [CategoryAssignment](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.CategoryAssignment.md)
  - : Returns the category assignment for a specific category.

    **Parameters:**

    - category - the category to use when fetching assignments.

    **Returns:**

    - The category assignment for a specific category.

***

### getCategoryAssignments()

- getCategoryAssignments(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of category assignments for this product in
    the current site catalog.

    **Returns:**

    - Collection of category assignments.

***

### getClassificationCategory()

- getClassificationCategory(): [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md)
  - : Returns the classification category associated with this Product. A
    product has a single classification category which may or may not be in
    the site catalog. The classification category defines the attribute set
    of the product. See [getAttributeModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getattributemodel) for
    how the classification category is used.

    **Returns:**

    - the associated classification Category, or null if none is
      associated.

***

### getEAN()

- getEAN(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the European Article Number of the product.

    **Returns:**

    - the European Article Number of the product.

***

### getID()

- getID(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the ID of the product.

    **Returns:**

    - ID of the product.

***

### getImage()

- ~~getImage(): [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)~~
  - : Returns the product's image.

    **Returns:**

    - the product's image.

    **Deprecated:**

:::warning
Commerce Cloud Digital introduces a new more powerful product
image management. It allows to group product images by self-defined view types
(e.g. 'large', 'thumbnail', 'swatch') and variation values (e.g. for attribute
color 'red', 'blue'). Images can be annotated with pattern based title and
alt. Product images can be accessed from Digital locations or external storage
locations.

Please use the new product image management. Therefore you have to set
up the common product image settings like view types, image location,
default image alt and title for your catalogs first. After that you can
group your product images by the previously defined view types in context
of a product. Finally use [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and
[getImage(String, Number)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagestring-number) to access your images.
:::

***

### getImage(String)

- getImage(viewtype: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)
  - : The method calls [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and returns the first image.
    If no image is available the method returns null.

    When called for a variant with defined images for specified view type the
    method returns the first image.

    When called for a variant without defined images for specified view type
    the method returns the first master product image. If no master product
    images are defined, the method returns null.

    **Parameters:**

    - viewtype - the view type annotated to image

    **Returns:**

    - the MediaFile or null

    **Throws:**

    - NullArgumentException - if viewtype is null

***

### getImage(String, Number)

- getImage(viewtype: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md), index: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)
  - : The method calls [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and returns the image at
    the specific index. If no image for specified index is available the
    method returns null.

    **Parameters:**

    - viewtype - the view type annotated to image
    - index - the index number of the image within image list

    **Returns:**

    - the MediaFile or null

    **Throws:**

    - NullArgumentException - if viewtype is null

***

### getImages(String)

- getImages(viewtype: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): [List](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.List.md)
  - : Returns all images assigned to this product for a specific view type,
    e.g. all 'thumbnail' images. The images are returned in the order of
    their index number ascending.

    When called for a master the method returns the images specific to the
    master, which are typically the fall back images.

    **Parameters:**

    - viewtype - the view type annotated to images

    **Returns:**

    - a list of MediaFile objects, possibly empty

    **Throws:**

    - NullArgumentException - if viewtype is null

***

### getIncomingProductLinks()

- getIncomingProductLinks(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns incoming ProductLinks, where the source product is a site product.

    **Returns:**

    - a collection of incoming ProductLinks, where the source product is
      a site product.

***

### getIncomingProductLinks(Number)

- getIncomingProductLinks(type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns incoming ProductLinks, where the source product is a site product
    of a specific type.

    **Parameters:**

    - type - the type of ProductLinks to fetch.

    **Returns:**

    - a collection of incoming ProductLinks, where the source product is
      a site product of a specific type.

***

### getLongDescription()

- getLongDescription(): [MarkupText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MarkupText.md)
  - : Returns the product's long description in the current locale.

    **Returns:**

    - The product's long description in the current locale, or null if it
      wasn't found.

***

### getManufacturerName()

- getManufacturerName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the name of the product manufacturer.

    **Returns:**

    - the name of the product manufacturer.

***

### getManufacturerSKU()

- getManufacturerSKU(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the value of the manufacturer's stock keeping unit.

    **Returns:**

    - the value of the manufacturer's stock keeping unit.

***

### getMinOrderQuantity()

- getMinOrderQuantity(): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the minimum order quantity for this product.

    **Returns:**

    - the minimum order quantity of the product.

***

### getName()

- getName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the name of the product in the current locale.

    **Returns:**

    - The name of the product for the current locale, or null if it
      wasn't found.

***

### getOnlineCategories()

- getOnlineCategories(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all currently online categories to which this
    product is assigned and which are also available through the current
    site. A category is currently online if its online flag equals true and
    the current site date is within the date range defined by the onlineFrom
    and onlineTo attributes.

    **Returns:**

    - Collection of currently online categories to which this product
      is assigned and which are also available through the current
      site.

***

### getOnlineFlag()

- getOnlineFlag(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns the online status flag of the product.

    **Returns:**

    - the online status flag of the product.

***

### getOnlineFrom()

- getOnlineFrom(): [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md)
  - : Returns the date from which the product is online or valid.

    **Returns:**

    - the date from which the product is online or valid.

***

### getOnlineTo()

- getOnlineTo(): [Date](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Date.md)
  - : Returns the date until which the product is online or valid.

    **Returns:**

    - the date until which the product is online or valid.

***

### getOptionModel()

- getOptionModel(): [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md)
  - : Returns the product's option model. The option values selections are
    initialized with the values defined for the product, or the default values
    defined for the option.

    **Returns:**

    - the products option model.

***

### getOrderableRecommendations()

- getOrderableRecommendations(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a list of outgoing recommendations for this product. This method
    behaves similarly to [getRecommendations()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getrecommendations) but additionally filters out
    recommendations for which the target product is unorderable according to
    its product availability model.

    **Returns:**

    - the sorted collection of recommendations, never null but possibly
      empty.

    **See Also:**

    - [ProductAvailabilityModel.isOrderable()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md#isorderable)

***

### getOrderableRecommendations(Number)

- getOrderableRecommendations(type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a list of outgoing recommendations for this product. This method
    behaves similarly to [getRecommendations(Number)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getrecommendationsnumber) but additionally
    filters out recommendations for which the target product is unorderable
    according to its product availability model.

    **Parameters:**

    - type - the recommendation type.

    **Returns:**

    - the sorted collection of recommendations, never null but possibly
      empty.

    **See Also:**

    - [ProductAvailabilityModel.isOrderable()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductAvailabilityModel.md#isorderable)

***

### getPageDescription()

- getPageDescription(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns product's page description in the default locale.

    **Returns:**

    - The product's page description in the default locale,
      or null if it wasn't found.

***

### getPageKeywords()

- getPageKeywords(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the product's page keywords in the default locale.

    **Returns:**

    - The product's page keywords in the default locale,
      or null if it wasn't found.

***

### getPageMetaTag(String)

- getPageMetaTag(id: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): [PageMetaTag](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.web.PageMetaTag.md)
  - : Returns the page meta tag for the specified id.

    The meta tag content is generated based on the product detail page meta tag context and rule. The rule is
    obtained from the current product context or inherited from variation groups, master product, the primary
    category, up to the root category.

    Null will be returned if the meta tag is undefined on the current instance, or if no rule can be found for the
    current context, or if the rule resolves to an empty string.

    **Parameters:**

    - id - the ID to get the page meta tag for

    **Returns:**

    - page meta tag containing content generated based on rules

***

### getPageMetaTags()

- getPageMetaTags(): [Array](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Array.md)
  - : Returns all page meta tags, defined for this instance for which content can be generated.

    The meta tag content is generated based on the product detail page meta tag context and rules. The rules are
    obtained from the current product context or inherited from variation groups, master product, the primary
    category, up to the root category.

    **Returns:**

    - page meta tags defined for this instance, containing content generated based on rules

***

### getPageTitle()

- getPageTitle(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the product's page title in the default locale.

    **Returns:**

    - The product's page title in the default locale,
      or null if it wasn't found.

***

### getPageURL()

- getPageURL(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the product's page URL in the default locale.

    **Returns:**

    - The product's page URL in the default locale,
      or null if it wasn't found.

***

### getPriceModel()

- getPriceModel(): [ProductPriceModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductPriceModel.md)
  - : Returns the price model, which can be used to retrieve a price
    for this product.

    **Returns:**

    - the price model, which can be used to retrieve a price
      for this product.

***

### getPriceModel(ProductOptionModel)

- getPriceModel(optionModel: [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md)): [ProductPriceModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductPriceModel.md)
  - : Returns the price model based on the specified optionModel. The
    price model can be used to retrieve a price
    for this product. Prices are calculated based on the option values
    selected in the specified option model.

    **Parameters:**

    - optionModel - the option model to use when fetching the  price model.

    **Returns:**

    - the price model based on the specified optionModel.

***

### getPrimaryCategory()

- getPrimaryCategory(): [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md)
  - : Returns the primary category of the product within the current site catalog.

    **Returns:**

    - The product's primary category or null.

***

### getPrimaryCategoryAssignment()

- getPrimaryCategoryAssignment(): [CategoryAssignment](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.CategoryAssignment.md)
  - : Returns the category assignment to the primary category in the current site
    catalog or null if no primary category is defined within the current site
    catalog.

    **Returns:**

    - The category assignment to the primary category or null.

***

### getProductLinks()

- getProductLinks(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all outgoing ProductLinks, where the target product is also
    available in the current site. The ProductLinks are unsorted.

    **Returns:**

    - a collection of outgoing ProductLinks where the target product is also
      available in the current site.

***

### getProductLinks(Number)

- getProductLinks(type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all outgoing ProductLinks of a specific type, where the target
    product is also available in the current site. The ProductLinks are
    sorted.

    **Parameters:**

    - type - the type of ProductLinks to fetch.

    **Returns:**

    - a collection of outgoing ProductLinks where the target product is also
      available in the current site.

***

### getProductSetProducts()

- getProductSetProducts(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all products which are assigned to this product
    and which are also available through the current site.  If this product
    does not represent a product set then an empty collection will be
    returned.

    **Returns:**

    - Collection of products which are assigned to this product
      and which are also available through the current site.

***

### getProductSets()

- getProductSets(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all product sets in which this product is included.
    The method only returns product sets assigned to the current site.

    **Returns:**

    - Collection of product sets in which this product is included, possibly empty.

***

### getRecommendations()

- getRecommendations(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns the outgoing recommendations for this product which
    belong to the site catalog.  If this product is not assigned to the site
    catalog, or there is no site catalog, an empty collection is returned.
    Only recommendations for which the target product exists and is assigned
    to the site catalog are returned.  The recommendations are sorted by
    their explicitly set order.

    **Returns:**

    - the sorted collection of recommendations, never null but possibly empty.

***

### getRecommendations(Number)

- getRecommendations(type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns the outgoing recommendations for this product which are of the
    specified type and which belong to the site catalog.  Behaves the same as
    [getRecommendations()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getrecommendations) but additionally filters by recommendation
    type.

    **Parameters:**

    - type - the recommendation type.

    **Returns:**

    - the sorted collection of recommendations, never null but possibly empty.

***

### getSearchPlacement()

- getSearchPlacement(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the product's search placement classification. The higher the
    numeric product placement value, the more relevant is the product when
    sorting search results. The range of numeric placement values is
    defined in the meta data of object type 'Product' and can therefore be
    customized.

    **Returns:**

    - The product's search placement classification.

***

### getSearchRank()

- getSearchRank(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the product's search rank. The higher the numeric product rank,
    the more relevant is the product when sorting search results. The range of
    numeric rank values is defined in the meta data of object type 'Product'
    and can therefore be customized.

    **Returns:**

    - The product's search rank.

***

### getSearchableFlag()

- getSearchableFlag(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns, whether the product is currently searchable.

    **Returns:**

    - the searchable status flag of the product.

***

### getSearchableIfUnavailableFlag()

- getSearchableIfUnavailableFlag(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns the searchable status of the [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md) if unavailable.

    Besides `true` or `false`, the return value `null` indicates that the value is not set.

    **Returns:**

    - The searchable status of the product if unavailable or `null` if not set.

***

### getShortDescription()

- getShortDescription(): [MarkupText](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MarkupText.md)
  - : Returns the product's short description in the current locale.

    **Returns:**

    - the product's short description in the current locale, or null if it
      wasn't found.

***

### getSiteMapChangeFrequency()

- getSiteMapChangeFrequency(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the product's change frequency needed for the sitemap creation.

    **Returns:**

    - The product's sitemap change frequency.

***

### getSiteMapIncluded()

- getSiteMapIncluded(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the status if the product is included into the sitemap.

    **Returns:**

    - the value of the attribute 'siteMapIncluded'.

***

### getSiteMapPriority()

- getSiteMapPriority(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the product's priority needed for the sitemap creation.

    **Returns:**

    - The product's sitemap priority.

***

### getStepQuantity()

- getStepQuantity(): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the steps in which the order amount of the product can be
    increased.

    **Returns:**

    - the order amount by which the product can be increased.

***

### getStoreReceiptName()

- getStoreReceiptName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the store receipt name of the product in the current locale.

    **Returns:**

    - The store receipt name of the product for the current locale, or null if it
      wasn't found.

***

### getStoreTaxClass()

- getStoreTaxClass(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the store tax class ID.

    This is an optional override for in-store tax calculation.

    **Returns:**

    - the store tax class id.

***

### getTaxClassID()

- getTaxClassID(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the ID of the product's tax class, by resolving
    the Global Preference setting selected. If the Localized
    Tax Class setting under Global Preferences -> Products is
    selected, the localizedTaxClassID attribute value will be
    returned, else the legacy taxClassID attribute value will
    be returned.

    **Returns:**

    - the ID of the product's tax class depending on the Global Preference setting selected for Products.

***

### getTemplate()

- getTemplate(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the name of the product's rendering template.

    **Returns:**

    - the name of the product's rendering template.

***

### getThumbnail()

- ~~getThumbnail(): [MediaFile](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.content.MediaFile.md)~~
  - : Returns the product's thumbnail image.

    **Returns:**

    - the product's thumbnail image.

    **Deprecated:**

:::warning
Commerce Cloud Digital introduces a new more powerful product
image management. It allows to group product images by self-defined view types
(e.g. 'large', 'thumbnail', 'swatch') and variation values (e.g. for attribute
color 'red', 'blue'). Images can be annotated with pattern based title and
alt. Product images can be accessed from Digital locations or external storage
locations.

Please use the new product image management. Therefore you have to set
up the common product image settings like view types, image location,
default image alt and title for your catalogs first. After that you can
group your product images by the previously defined view types in context
of a product. Finally use [getImages(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagesstring) and
[getImage(String, Number)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getimagestring-number) to access your images.
:::

***

### getUPC()

- getUPC(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Universal Product Code of the product.

    **Returns:**

    - the Universal Product Code of the product.

***

### getUnit()

- getUnit(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the product's sales unit.

    **Returns:**

    - the products sales unit.

***

### getUnitQuantity()

- getUnitQuantity(): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the product's unit quantity.

    **Returns:**

    - the products unit quantity.

***

### getVariants()

- getVariants(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all variants assigned to this variation master
    or variation group product. All variants are returned regardless of whether
    they are online or offline.

    If this product does not represent a variation master or variation group
    product then an empty collection is returned.

    **Returns:**

    - Collection of variants associated with this variation master or
      variation group product.

***

### getVariationGroups()

- getVariationGroups(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns a collection of all variation groups assigned to this variation
    master product. All variation groups are returned regardless of whether
    they are online or offline.

    If this product does not represent a variation master product then an
    empty collection is returned.

    **Returns:**

    - Collection of variation groups associated with this variation
      master product.

***

### getVariationModel()

- getVariationModel(): [ProductVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductVariationModel.md)
  - : Returns the variation model of this product. If this product is a master
    product, then the returned model will encapsulate all the information
    about its variation attributes and variants. If this product is a variant
    product, then the returned model will encapsulate all the same
    information, but additionally pre-select all the variation attribute
    values of this variant. (See [ProductVariationModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductVariationModel.md) for
    details on what "selected" means.) If this product is neither a master
    product or a variation product, then a model will be returned but will be
    essentially empty and not useful for any particular purpose.

    **Returns:**

    - the variation model of the product.

***

### includedInBundle(Product)

- includedInBundle(product: [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if the specified product participates in this product bundle.
    If this product does not represent a bundle at all, then false will
    always be returned.

    **Parameters:**

    - product - the product to check for participation.

    **Returns:**

    - true if the product participates in the bundle, false otherwise.

***

### isAssignedToCategory(Category)

- isAssignedToCategory(category: [Category](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Category.md)): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns 'true' if item is assigned to the specified
    category.

    **Parameters:**

    - category - the category to check.

    **Returns:**

    - true if item is assigned to category.

***

### isAssignedToSiteCatalog()

- isAssignedToSiteCatalog(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns `true` if the product is assigned to the current site (via the site catalog), otherwise
    `false` is returned.

    In case of the product being a variant, the variant will be considered as assigned if its master, one of the
    variation groups it is in or itself is assigned to the site catalog. In case this is triggered for a variation
    group the variation group is considered as assigned if its master or itself is assigned.

    **Returns:**

    - 'true' if product assigned to the site catalog

***

### isAvailable()

- ~~isAvailable(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~
  - : Identifies if the product is available.

    **Returns:**

    - the value of the attribute 'available'.

    **Deprecated:**

:::warning
Use [getAvailabilityModel()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#getavailabilitymodel).isInStock() instead
:::

***

### isBundle()

- isBundle(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if this product instance is a product bundle.

    **Returns:**

    - true if the product is a bundle, false otherwise.

***

### isBundled()

- isBundled(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if this product instance is bundled within at least one
    product bundle.

    **Returns:**

    - true if the product is bundled, false otherwise.

***

### isCategorized()

- isCategorized(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if this product is bound to at least one catalog category.

    **Returns:**

    - true if the product is bound to at least one catalog category,
      false otherwise.

***

### isFacebookEnabled()

- isFacebookEnabled(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if the product is Facebook enabled.

    **Returns:**

    - the value of the attribute 'facebookEnabled'.

***

### isMaster()

- isMaster(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if this product instance is a product master.

    **Returns:**

    - true if the product is a master, false otherwise.

***

### isOnline()

- isOnline(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns the online status of the product. The online status
    is calculated from the online status flag and the onlineFrom
    onlineTo dates defined for the product.

    **Returns:**

    - the online status of the product.

***

### isOptionProduct()

- isOptionProduct(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if the product has options.

    **Returns:**

    - true if product has options, false otherwise.

***

### isPinterestEnabled()

- isPinterestEnabled(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if the product is Pinterest enabled.

    **Returns:**

    - the value of the attribute 'pinterestEnabled'.

***

### isProduct()

- isProduct(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns 'true' if the instance represents a product. Returns 'false' if
    the instance represents a product set.

    **Returns:**

    - true if the instance is a product, false otherwise.

    **See Also:**

    - [isProductSet()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproductset)

***

### isProductSet()

- isProductSet(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns 'true' if the instance represents a product set, otherwise 'false'.

    **Returns:**

    - true if the instance is a product set, false otherwise.

    **See Also:**

    - [isProduct()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproduct)

***

### isProductSetProduct()

- isProductSetProduct(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Returns true if this product is part of any product set, otherwise false.

    **Returns:**

    - true if the product is part of any product set, false otherwise.

***

### isRetailSet()

- ~~isRetailSet(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~
  - : Identifies if this product instance is part of a retail set.

    **Returns:**

    - true if the product is part of a retail set, false otherwise.

    **Deprecated:**

:::warning
Use [isProductSet()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isproductset) instead
:::

***

### isSearchable()

- isSearchable(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if the product is searchable.

    **Returns:**

    - the value of the attribute 'searchable'.

***

### isSiteProduct()

- ~~isSiteProduct(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)~~
  - : Returns 'true' if the product is assigned to the current site (via the
    site catalog), otherwise 'false' is returned.

    **Returns:**

    - 'true' if product assigned to site.

    **Deprecated:**

:::warning
Use [isAssignedToSiteCatalog()](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md#isassignedtositecatalog) instead
:::

***

### isVariant()

- isVariant(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if this product instance is mastered by a product master.

    **Returns:**

    - true if the product is mastered, false otherwise.

***

### isVariationGroup()

- isVariationGroup(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : Identifies if this product instance is a variation group product.

    **Returns:**

    - true if the product is a variation group, false otherwise.

***

### setAvailableFlag(Boolean)

- ~~setAvailableFlag(available: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)): void~~
  - : Set the availability status flag of the product.

    **Parameters:**

    - available - Availability status flag.

    **Deprecated:**

:::warning
Don't use this method anymore.
:::

***

### setOnlineFlag(Boolean) - Variant 1

- setOnlineFlag(online: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)): void
  - : Set the online status flag of the product.

    **Parameters:**

    - online - Online status flag.

    **API Version:**

:::note
No longer available as of version 10.6.
:::

***

### setOnlineFlag(Boolean) - Variant 2

- setOnlineFlag(online: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)): void
  - : Set the online status flag of the product for the current site. If current site is not available (i.e.
    in case this method is called by a job that runs on organization level) the online status flag is set global,
    which can affect all sites.

    In previous versions this method set the online status flag global, instead of site specific.

    **Parameters:**

    - online - Online status flag.

    **API Version:**

:::note
Available from version 10.6.
In prior versions this method set the online status flag global, instead of site specific.
:::

***

### setSearchPlacement(Number) - Variant 1

- setSearchPlacement(placement: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): void
  - : Set the product's search placement.

    **Parameters:**

    - placement - The product's search placement classification.

    **API Version:**

:::note
No longer available as of version 10.6.
:::

***

### setSearchPlacement(Number) - Variant 2

- setSearchPlacement(placement: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): void
  - : Set the product's search placement classification in context of the current site. If current site is not
    available (i.e. in case this method is called by a job that runs on organization level) the search placement is
    set global, which can affect all sites.

    In previous versions this method set the search placement classification global, instead of site specific.

    **Parameters:**

    - placement - The product's search placement classification.

    **API Version:**

:::note
Available from version 10.6.
In prior versions this method set the search placement classification global, instead of site specific.
:::

***

### setSearchRank(Number) - Variant 1

- setSearchRank(rank: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): void
  - : Set the product's search rank.

    **Parameters:**

    - rank - The product's search rank.

    **API Version:**

:::note
No longer available as of version 10.6.
:::

***

### setSearchRank(Number) - Variant 2

- setSearchRank(rank: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): void
  - : Set the product's search rank in context of the current site. If current site is not available (i.e. in case this
    method is called by a job that runs on organization level) the search rank is set global, which can affect all
    sites.

    In previous versions this method set the search rank global, instead of site specific.

    **Parameters:**

    - rank - The product's search rank.

    **API Version:**

:::note
Available from version 10.6.
In prior versions this method set the search rank global, instead of site specific.
:::

***

### setSearchableFlag(Boolean) - Variant 1

- setSearchableFlag(searchable: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)): void
  - : Set the flag indicating whether the product is searchable or not.

    **Parameters:**

    - searchable - The value of the attribute 'searchable'.

    **API Version:**

:::note
No longer available as of version 10.6.
:::

***

### setSearchableFlag(Boolean) - Variant 2

- setSearchableFlag(searchable: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)): void
  - : Set the flag indicating whether the product is searchable or not in context of the current site. If current site
    is not available (i.e. in case this method is called by a job that runs on organization level) the searchable
    flag is set global, which can affect all sites.

    In previous versions this method set the searchable flag global, instead of site specific.

    **Parameters:**

    - searchable - The value of the attribute 'searchable'.

    **API Version:**

:::note
Available from version 10.6.
In prior versions this method set the searchable flag global, instead of site specific.
:::

***
