/** * Retrieve Attributes array used for sort by * * @return array */ public function getAttributesUsedForSortBy() { $options = parent::getAttributesUsedForSortBy(); return $this->addNewOptions($options, true); }
/** * Surcharge pour que ordered_qty soit toujours charg�s dans les listes * * @return array */ public function getProductAttributes() { $return = parent::getProductAttributes(); $return[] = 'ordered_qty'; return $return; }