Jump to content

Default "Sort By" Product Dropdown -- Want to edit


chandrakanta

Recommended Posts

I'm want to edit "Sort By" - product drop down and where I want to set to show "highest first" - products by default and also I want to delete "--" signs.

 

 

If some one try to check some products, then he/she is always get the products from high prices...

 

 

 

Please help...!

Link to comment
Share on other sites

To change the default to "highest first", go to Preferences > Customers and change the "Default order by" to "Product price" and "Default order method" to "Descending".
 
To remove the "--" from the dropdown, change line 49 of product-sort.tpl in your theme's directory from:
			<option value="{if $page_name != 'best-sales'}{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefault|escape:'html':'UTF-8'}{/if}"{if !in_array($orderby, array('price', 'name', 'quantity', 'reference')) && $orderby eq $orderbydefault} selected="selected"{/if}>--</option>

to:

{*			<option value="{if $page_name != 'best-sales'}{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefault|escape:'html':'UTF-8'}{/if}"{if !in_array($orderby, array('price', 'name', 'quantity', 'reference')) && $orderby eq $orderbydefault} selected="selected"{/if}>--</option>*}

Note that your customers probably won't appreciate having your most expensive products first though. ;)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...