close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS 3 & Side Menu category sort order

Thread began 3/23/2010 7:02 am by gw311682 | Last modified 3/25/2010 3:35 pm by Eric Mittman | 1461 views | 3 replies |

gw311682

PS 3 & Side Menu category sort order

Hello, I would like to sort the order of the categories in the side menu so that they are in the same order as the Product drop down list in the main navigation menu.

Currently, the menus are in this order:

Main Menu (as product category order - I've left out Search & Show All Products for clarity)
New Arrivals
Future Releases
Adventure
Children
Crime & Thriller
Historical Fiction
Literature
Sci-Fi & Fantasy
Reading Copies

Side menu (alphabetically)
Adventure
Children
Crime & Thriller
Future Releases
Historical Fiction
Literature
New Arrivals
Reading Copies
Sci-Fi & Fantasy

(I have looked at other posts that seem related to this subject and these all seem to refer to the intermerdiate.php file in the CSSMenuWriter folder. Unfortunately, in every thread example I’ve seen the code it’s necessary to change to alter the sort order doesn’t exist in my file (or my unaltered check file)! And believe me, I’ve looked and searched. Please note that I don’t have any products loaded into my local testing site yet, just in case this affects the code in the intermediate.php file.)

One other small point is that you may have realised I’m a bookseller from the categories I use. Children, of course, should read Children’s (a small but important point for someone dealing with literature) but it can’t because of the problems caused by using an apostrophe in a category name. Any sign of a fix yet for this known problem?

I really will appreciate any help with this sort problem and thanks in advance.

Sign in to reply to this post

Eric Mittman

To make the categories in the left area appear in the same order as the categories from the products dropdown list in PowerStore 3 you just need to update the main template.

Go into Templates > Main.dwt.php. In this file on line 269 you should have this code:

php:
$query_SubCategoryList = "SELECT * FROM ps3_categories WHERE CategoryParent = ".$StartWith . " ORDER BY CategoryName";



Update this line of code so that it is ordered by the CategoryID like this:

php:
$query_SubCategoryList = "SELECT * FROM ps3_categories WHERE CategoryParent = ".$StartWith . " ORDER BY CategoryID";



As for using single quotes and apostrophes in the names you can do this by using the entity version of this character like this:

use this for double quote:

php:
"



use this for single quote

php:
‘
Sign in to reply to this post

gw311682

Thanks Eric, your solutions solved these two problems for me. Many thanks.

Sign in to reply to this post

Eric Mittman

You are very welcome, I'm glad to hear that.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...