Package DE_EPAGES::Product::API::Object::PagerLoopProducts
Implements a pager for sorting a list of products.
Base |
DE_EPAGES::Presentation::API::Object::PagerLoop |
Functions
sortObjects
Sorts a list of products by the 'OrderBy' and 'OrderDesc' input fields. Gets attribute values by "$Product->getWithParent" to account for inherited attribute values of sub products. Special handling of the "ListPrice" attribute: - use $Product->getListPrice( $self->{CurrencyID} ) if $self->{CurrencyID} is defined, - throws an error if CurrencyID is not defined
Syntax |
$aSortedObjects = $Object->sortObjects($aObjects); |
Input |
|
Return |
|