One of the configurable attributes on the product details page is date. Currently these are displayed in the order which they are found in the database.

I need for these to display on the product page in an ascending sorted order. So far I've gotten as far as this file


The attributes seem to be called by this method

getConfigurableAttributeCollection($product = null)

which is called from

getConfigurableAttributes($product = null)
    if (!$this->getProduct($product)->hasData($this->_configurableAttributes)) {
        $configurableAttributes = $this->getConfigurableAttributeCollection($product)
        $this->getProduct($product)->setData($this->_configurableAttributes, $configurableAttributes);
    return $this->getProduct($product)->getData($this->_configurableAttributes);

I've done various var_dumps() at different points but I am still unsure about where exactly I can or should sort these dates.

1 Answer 1


I was able to catch the data in


I created a new method to perform the changes that I needed and called it like so

   $attributes[145]['options'] = $this->getOrderDateOptions($attributes);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.