How to change Default Sort Order Magento

Share
Posted on December 27th, 2011 | Posted by admin

I’ll be clear… Magento is not good as you could imagine. In fact sucks in so many ways.

Today i’m showing you one. There is no backend option to change the Default Sort Order in your product listing (catalog).

Lucky there is an easy solution.

The Toolbar

Look for the file toolbar.php located in:

/app/code/core/Mage/Catalog/Block/Product/List

Create the Local folder

Create the same folder structure in the local. Now the future upgrades will not affect your changes.

Should be like:

/app/code/local/Mage/Catalog/Block/Product/List

Edit the Toolbar

How to change the Price Range Magento

Share
Posted on December 27th, 2011 | Posted by admin

If you need to change the Price Range in your Magento catalog go to:

app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php

Look for the line:

$range = pow(10, (strlen(floor($maxPrice))-$index));

Change the 10 for a lower / higher number.

Tested in the 1.4 version

How to change Default Sort Order Magento

Share
Posted on December 11th, 2011 | Posted by admin

I’ll be clear… Magento is not good as you could imagine. In fact sucks in so many ways.

Today i’m showing you one. There is no backend option to change the Default Sort Order in your product listing (catalog).

Lucky there is an easy solution.

The Toolbar

Look for the file toolbar.php located in:

/app/code/core/Mage/Catalog/Block/Product/List

Create the Local folder

Create the same folder structure in the local. Now the future upgrades will not affect your changes.

Should be like:

/app/code/local/Mage/Catalog/Block/Product/List

Edit the Toolbar

How to change the Price Range Magento

Share
Posted on December 11th, 2011 | Posted by admin

If you need to change the Price Range in your Magento catalog go to:

app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php

Look for the line:

$range = pow(10, (strlen(floor($maxPrice))-$index));

Change the 10 for a lower / higher number.

Tested in the 1.4 version

How to change Weight Attribute decimals Magento

Share
Posted on October 6th, 2011 | Posted by admin

There is no simple way to change the decimal numbers in the Weight Attribute in Magento.

And is not a specific solution either.

What can we do?

For example, we can force to all numeric attributes to show with 2 decimals.

Open the attributes.phtml located in:

app/design/frontend/YOUR THEME/template/catalog/product/view/

I changed this:

Page 1 of 212»