A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be. For example, a digital download (such as a movie, music or ebook file) also qualifies as a product, as do services (such as equipment rental, work for hire, customization of another product or an extended warranty).
More...
|
T | Get< T > (string field, string alias=null) |
|
Dictionary< string, object > | Data |
|
Dictionary< string, object > | DataJSON [get, protected set] |
|
A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be. For example, a digital download (such as a movie, music or ebook file) also qualifies as a product, as do services (such as equipment rental, work for hire, customization of another product or an extended warranty).
◆ Product()
Shopify.Unity.Product.Product |
( |
Dictionary< string, object > |
dataJSON | ) |
|
|
inline |
Accepts deserialized json data. Will further parse passed in data.
- Parameters
-
dataJSON | Deserialized JSON data for Product |
◆ availableForSale()
bool Shopify.Unity.Product.availableForSale |
( |
| ) |
|
|
inline |
Indicates if at least one product variant is available for sale.
◆ collections()
List of collections a product belongs to.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ createdAt()
DateTime? Shopify.Unity.Product.createdAt |
( |
| ) |
|
|
inline |
The date and time when the product was created.
◆ description()
string Shopify.Unity.Product.description |
( |
string |
alias = null | ) |
|
|
inline |
Stripped description of the product, single line with HTML tags removed.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ descriptionHtml()
string Shopify.Unity.Product.descriptionHtml |
( |
| ) |
|
|
inline |
The description of the product, complete with HTML formatting.
◆ handle()
string Shopify.Unity.Product.handle |
( |
| ) |
|
|
inline |
A human-friendly unique string for the Product automatically generated from its title. They are used by the Liquid templating language to refer to objects.
◆ id()
string Shopify.Unity.Product.id |
( |
| ) |
|
|
inline |
◆ images()
List of images associated with the product.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ media()
The media associated with the product.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ metafield()
Metafield Shopify.Unity.Product.metafield |
( |
string |
alias = null | ) |
|
|
inline |
The metafield associated with the resource.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
Implements Shopify.Unity.HasMetafields.
◆ metafields()
A paginated list of metafields associated with the resource.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
Implements Shopify.Unity.HasMetafields.
◆ onlineStoreUrl()
string Shopify.Unity.Product.onlineStoreUrl |
( |
| ) |
|
|
inline |
The online store URL for the product. A value of null
indicates that the product is not published to the Online Store sales channel.
◆ options()
List<ProductOption> Shopify.Unity.Product.options |
( |
string |
alias = null | ) |
|
|
inline |
List of product options.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ presentmentPriceRanges()
List of price ranges in the presentment currencies for this shop.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ priceRange()
◆ productType()
string Shopify.Unity.Product.productType |
( |
| ) |
|
|
inline |
A categorization that a product can be tagged with, commonly used for filtering and searching.
◆ publishedAt()
DateTime? Shopify.Unity.Product.publishedAt |
( |
| ) |
|
|
inline |
The date and time when the product was published to the channel.
◆ tags()
List<string> Shopify.Unity.Product.tags |
( |
| ) |
|
|
inline |
A comma separated list of tags that have been added to the product. Additional access scope required for private apps: unauthenticated_read_product_tags.
◆ title()
string Shopify.Unity.Product.title |
( |
| ) |
|
|
inline |
◆ updatedAt()
DateTime? Shopify.Unity.Product.updatedAt |
( |
| ) |
|
|
inline |
The date and time when the product was last modified. A product's updatedAt
value can change for different reasons. For example, if an order is placed for a product that has inventory tracking set up, then the inventory adjustment is counted as an update.
◆ variantBySelectedOptions()
ProductVariant Shopify.Unity.Product.variantBySelectedOptions |
( |
string |
alias = null | ) |
|
|
inline |
Find a product’s variant based on its selected options. This is useful for converting a user’s selection of product options into a single matching variant. If there is not a variant for the selected options, null
will be returned.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ variants()
List of the product’s variants.
- Parameters
-
alias | If the original field queried was queried using an alias, then pass the matching string. |
◆ vendor()
string Shopify.Unity.Product.vendor |
( |
| ) |
|
|
inline |
The product’s vendor name.
The documentation for this class was generated from the following file:
- Assets/Shopify/Unity/Generated/Product.cs