Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Product class

From Catglobe Wiki

Product



Represents a Product.

Parent class

Inherits from object

Constructors

  • (int ResourceId "Resource Id of the Product") - Instanciate an existing instance using the resource id of a product

Methods

  • number CostInCurrency(string currency "Currency to use for calculations. Use empty for default currency") - Unit price
  • (From object) string ToString() - The string representation of the object.

Properties

  • string Category { get; } - Category of the Product
  • number CostInDefaultCurrency { get; } - Unit price
  • int CostInPoints { get; } - How many points does this product cost
  • int GiftPoints { get; } - Bonus points awarded when buying this product
  • object GroupResourceId { get; } - Resource id of the group contains product (product supplier). if product doesn't belong any group, return empty
  • string ImageUrl { get; } - Url to the main image of the product
  • bool IsPhysical { get; } - Is the product something that needs to be physically delivered
  • string LocalizedDescription { get; } - Localized description of the Product. This is HTML
  • Dictionary LocalizedDescriptions { get; } - Localized Descriptions of the Product
  • string LocalizedName { get; } - Localized Name of the Product
  • Dictionary LocalizedNames { get; } - Localized Names of the Product
  • string ObjectTypeName { get; } - The name of the type of object.
  • array ProductOptions { get; } - Get the options of this product, ordered by points then by localizedName
  • number PurchasePrice { get; } - Purchase price
  • number RecommendedPrice { get; } - Recommended price
  • int ResourceId { get; } - Resource id of the Product
  • string ResourceName { get; } - Name of the Product
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.
  • int Weight { get; } - Weight in kg

Static Methods

  • Array of Product Product_getByAllAccessableProductCategory() - Fetch all the products the user currently has access to view in the configured order