IProductAdapter
public interface IProductAdapter
Namespace
Methods
GetProductSnapshot (1 of 2)
Get a product snapshot for the supplied product reference in the given culture.
public IProductSnapshot GetProductSnapshot(string productReference, string languageIsoCode)
Parameters
Parameter | Description |
---|---|
productReference
|
The product reference of the product
|
languageIsoCode
|
The language ISO code of the culture
|
GetProductSnapshot (2 of 2)
Get a product snapshot for the supplied product reference in the given culture.
public IProductSnapshot GetProductSnapshot(string productReference, string productVariantReference,
string languageIsoCode)
Parameters
Parameter | Description |
---|---|
productReference
|
The product reference of the product
|
productVariantReference
|
The product variant reference of the product
|
languageIsoCode
|
The language ISO code of the culture
|
TryGetProductReference
Try and get the product reference for the given SKU in the given store.
public bool TryGetProductReference(Guid storeId, string sku, out string productReference,
out string productVariantReference)
Parameters
Parameter | Description |
---|---|
storeId
|
The id of the store to search in
|
sku
|
The SKU of the product to search for
|
productReference
|
The product reference of the found product, or null
|
productVariantReference
|
The product variant reference of the found product, or null
|
Returns
Boolean indicating whether a product reference was found for the given SKU