View Single Post
  #945  
Old 05-07-2015, 02:27 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Hi Phil, I would like to remove some of the sort options in the category page. I would just like to display sort by price and sort by sales.

skin/reboot/customer/search_sort_by.tpl

Replace...

Code:
<option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 0} selected="selected"{/if} value="{$http_location}/{$cur_url}sort={$name}&sort_direction=0" class="sort_asc">{$field} &uarr;</option>{* Ascending *} <option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 1} selected="selected"{/if} value="{$http_location}/{$cur_url}sort={$name}&sort_direction=1" class="sort_desc">{$field} &darr;</option>{* Descending *}

With...

Code:
{if $field ne "Default" && $field ne "Product"} <option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 0} selected="selected"{/if} value="{$http_location}/{$cur_url}sort={$name}&sort_direction=0" class="sort_asc">{$field} &uarr;</option>{* Ascending *} <option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 1} selected="selected"{/if} value="{$http_location}/{$cur_url}sort={$name}&sort_direction=1" class="sort_desc">{$field} &darr;</option>{* Descending *} {/if}

Quote:
Also, I 'd like to change the word "sales" to "popularity".

/admin/languages.php?language=en&topic=&filter=lbl_sales
__________________
xcartmods.co.uk
Reply With Quote