Product

FormatPrice

Format a decimal to a price using the current currency.

    GetPrice

    Gets a price for a specific product in the current currency.

      GetStock

      Gets the current stock for a specific product.

        GetVariant

        Returns a single variant from a product node. The product must have a property with the Tea Commerce: Variant Editor property editor on it. Also you should enter the alias of the document type property on the Store in the Tea Commerce section.

          GetVariants

          Returns a a list of variants from a product node. The product must have a property with the Tea Commerce: Variant Editor property editor on it. Also you should enter the alias of the document type property on the Store in the Tea Commerce section.

            GetVariantGroups

            Returns a list of variant groups that define the product variants. You can use this list to generate e.g. drop downs for the user to choose his variant combination.

              GetVariantJson

              Returns a json object containing all variants for the product. The data contains information about each variants combination of variant types. Use this data to javascript filter e.g. drop downs when a user/customer selects his variant.

                GetPropertyValue

                Returns the value of a property on the product. Will traverse the content tree recursively to find the value. Will also use the master relation property of the product to search master products.

                Note

                If you have a IPublishedContent model use that instead of the string productIdentifier, which is slightly slower.

                  Last Updated: 9/2/2019, 10:22:34 AM