products sort by
3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 15, 2010 (RSS)
By davef81 - November 15, 2010
Hello
I haven been looking at other posts on how to do this but cant get my head around it..
I have a list edit with all my products which are notebooks.
// load records
list($notebooksRecords,$notebooksMetaData)=getRecords(array(
'tableName' => 'notebooks',
?>
I want to be able to add a function where users can select either boys or girls notebooks wihtout having to add another page.
So either a link or drop down menu which will have the order by commands, i have tried several methods but cant get it to work. But in a nutshell i want to able to do this:
Customer goes on notebooks page. Sees all products however can choose to show girls notebooks at the top or boys notebooks at the top.
Any ideas?
Thanks so much
Dave
I haven been looking at other posts on how to do this but cant get my head around it..
I have a list edit with all my products which are notebooks.
// load records
list($notebooksRecords,$notebooksMetaData)=getRecords(array(
'tableName' => 'notebooks',
?>
I want to be able to add a function where users can select either boys or girls notebooks wihtout having to add another page.
So either a link or drop down menu which will have the order by commands, i have tried several methods but cant get it to work. But in a nutshell i want to able to do this:
Customer goes on notebooks page. Sees all products however can choose to show girls notebooks at the top or boys notebooks at the top.
Any ideas?
Thanks so much
Dave
Re: [davef81] products sort by
By zip222 - November 15, 2010
See below. This is basically what you need to add to your page. Though you need to change "FIELDNAME" to the actual name of the field that you are using in your cms to designate if a product is for boys or girls. And you also need to confirm that the values "boys, girls" match what you are using in the cms.
Sort by: <a href="?FIELDNAME=boys">Boys</a> | <a href="?FIELDNAME=girls">Girls</a>
Re: [zip222] products sort by
By davef81 - November 15, 2010
Hello Zip222
Thank you so much for your reply, working great, Really appreicate you taking out the time to help..
Thanks
Dave
Thank you so much for your reply, working great, Really appreicate you taking out the time to help..
Thanks
Dave