BUYProductVariant Class Reference
| Inherits from | BUYObject : NSObject |
|---|---|
| Declared in | BUYProductVariant.h |
Overview
A BUYProductVariant is a different version of a product, such as differing sizes or differing colours.
product
The BUYProduct associated this BUYProductVariant
@property (nonatomic, strong) BUYProduct *productDeclared In
BUYProductVariant.h
title
The title of the BUYProductVariant.
@property (nonatomic, readonly, copy) NSString *titleDeclared In
BUYProductVariant.h
options
Custom properties that a shop owner can use to define BUYProductVariants.
@property (nonatomic, readonly, copy) NSArray<BUYOptionValue*> *optionsDeclared In
BUYProductVariant.h
price
The price of the BUYProductVariant.
@property (nonatomic, readonly, strong) NSDecimalNumber *priceDeclared In
BUYProductVariant.h
compareAtPrice
The competitor’s prices for the same item.
@property (nonatomic, readonly, strong) NSDecimalNumber *compareAtPriceDeclared In
BUYProductVariant.h
grams
The weight of the BUYProductVariant in grams.
@property (nonatomic, readonly, strong) NSDecimalNumber *gramsDeclared In
BUYProductVariant.h
requiresShipping
Specifies whether or not a customer needs to provide a shipping address when placing an order for this BUYProductVariant. Valid values are: true: Customer needs to supply a shipping address. false: Customer does not need to supply a shipping address.
@property (nonatomic, readonly, strong) NSNumber *requiresShippingDeclared In
BUYProductVariant.h
sku
A unique identifier for the product in the shop.
@property (nonatomic, readonly, strong) NSString *skuDeclared In
BUYProductVariant.h
taxable
Specifies whether or not a tax is charged when the BUYProductVariant is sold.
@property (nonatomic, readonly, strong) NSNumber *taxableDeclared In
BUYProductVariant.h
position
The order of the BUYProductVariant in the list of product variants. 1 is the first position.
@property (nonatomic, readonly, strong) NSNumber *positionDeclared In
BUYProductVariant.h
available
If the variant is in stock
@property (nonatomic, readonly, assign) BOOL availableDeclared In
BUYProductVariant.h