ItemService
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
||
|
||
|
SessionStorageService |
|
|
||
|
Methods
public __construct($app, $itemRepository, $sessionStorage)
ItemService constructor.
Type |
Name |
Description |
|
||
|
||
|
public getItem($itemId):array
Get an item by ID
Type |
Name |
Description |
|
public getItems($itemIds):array
Get a list of items with the specified item IDs
Type |
Name |
Description |
|
public getItemImage($itemId):string
Type |
Name |
Description |
|
public getVariation($variationId):array
Get an item variation by ID
Type |
Name |
Description |
|
public getVariations($variationIds):array
Get a list of item variations with the specified variation IDs
Type |
Name |
Description |
|
public getVariationList($itemId, $withPrimary = false):array
Type |
Name |
Description |
|
||
|
public getVariationImage($variationId, $imageAccessor = "urlPreview"):string
Deprecated!
This method will not be supported in the future. Please refrain from using it as soon as possible. |
Type |
Name |
Description |
|
||
|
public getItemForCategory($catID, $params = [], $page = 1):array
Get all items for a specific category
Type |
Name |
Description |
|
||
|
||
|
public getVariationAttributeMap($itemId):array
List the attributes of an item variation
Type |
Name |
Description |
|
public getVariationIsSalable($variationId):bool
Type |
Name |
Description |
|
public getAttributeNameMap($itemId):array
Type |
Name |
Description |
|
public getItemURL($itemId):Record
Deprecated!
Use UrlService instead |
Get the item URL
Type |
Name |
Description |
|
public getAttributeName($attributeId):string
Get the name of an attribute by ID
Type |
Name |
Description |
|
public getAttributeValueName($attributeValueId):string
Get the name of an attribute value by ID
Type |
Name |
Description |
|
public getItemCrossSellingList($itemId, $crossSellingType = "similar"):array
Get a list of cross-selling items for the specified item ID
Type |
Name |
Description |
|
||
|
public getItemConditionText($conditionId):string
Type |
Name |
Description |
|
public getLatestItems($limit = 5, $categoryId):RecordList
Type |
Name |
Description |
|
||
|
public searchItems($searchString, $params = [], $page = 1):array
Type |
Name |
Description |
|
||
|
||
|
public getAdditionalItemSorting()
public addAdditionalItemSorting($key, $translationKey)
Type |
Name |
Description |
|
||
|
public fromMemoryCache()
public resetMemoryCache($key = null)
Type |
Name |
Description |
|