Knowledgebase: v 4.x.x
Cannot sort by MakeModel field on /my_listings/ page
Posted by Lena Kosyakova on 03 September 2009 05:05 PM
1. Open my_listings.tpl

2. find the code:

{if $property.MakeModel.is_sortable}
<a href="?restore=1&sorting_field=MakeModel&sorting_order={if $sorting_order == 'ASC' && $sorting_field == 'MakeModel'}DESC{else}ASC{/if}">[[FormFieldCaptions!Make/Series/Model]]</a>
{if $sorting_field == 'MakeModel'}{if $sorting_order == 'ASC'}<img src="{image}b_up_arrow.gif" alt="Up" />{else}<img src="{image}b_down_arrow.gif" alt="Down" />{/if}{/if}
{else}
[[FormFieldCaptions!Make/Series/Model]]
{/if}


3. Change it to:

<a href="?restore=1&sorting_field=MakeModel&listing_type_id=Car&sorting_order={if $sorting_order == 'ASC' && $sorting_field == 'MakeModel'}DESC{else}ASC{/if}">[[FormFieldCaptions!Make/Series/Model]]</a>
{if $sorting_field == 'MakeModel'}{if $sorting_order == 'ASC'}<img src="{image}b_up_arrow.gif" alt="Up" />{else}<img src="{image}b_down_arrow.gif" alt="Down" />{/if}{/if}

(321 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion