Package DE_EPAGES::Product::API::Object::PagerProducts
Pager for all products of a shop. Allows sorting by product attributes and list price,
Base |
DE_EPAGES::Presentation::API::Object::Pager |
Functions
countItems
Returns the total number of products in the shop.
Syntax |
$Count = $Pager->countItems; |
Return |
|
items
Return a list of all products on a page.
Syntax |
$aProducts = $Pager->items($PageNumber); |
Input |
|
Return |
|
sortObjects
Sorts the objects according to the 'OrderBy' and 'OrderDesc' attributes. The parameter CurrencyID is required for sorting by ListPrice. For sorting by attributes with value selection, add ".Value", for example OrderBy => 'Size.Value'. See also: DE_EPAGES::Product::API::Object::PagerLoopProducts::sortObjects.
Syntax |
$aSortedObjects = $Pager->sortObjects($aObjects); |
Input |
|
Return |
|