Get the value of a custom field for product types

To get the value of a custom field for a specific product, you must perform the following:

  1. Get the catalog manager.
    Get an instance of the CatalogManager object.
  2. Get the specified product.
    Get an instance of the product with the specified ID.
    For more information, see For developers: Query products.
  3. Get the value of the field.
    To set the value of the field you must call the GetValue method of the product instance. Pass the name of the field as an argument.

Use the following code sample:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?