close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order of Categories & Products

Thread began 9/02/2010 3:53 pm by mr. graphic | Last modified 9/07/2010 7:06 am by Jason Byrnes | 800 views | 3 replies |

mr. graphic

Order of Categories & Products

If I add a category later (it appears at bottom), how do I change the order of the listing of Categories (Alphabetical or otherwise)

and second if I add a product afterward, how do I change the order of products..

Sign in to reply to this post

Jason ByrnesWebAssist

you can change the order the categories to products are displayed by adding an order by clause to the recordset.


the product results page is already set to order the products by the product name:

php:
$query_WADAProducts = "SELECT * , coalesce((select ps3_productoptions.GroupingID from ps3_productoptions WHERE ps3_productoptions.ProductID = ps3_products.ProductID limit 1),ps3_products.ProductID) AS GroupingID FROM ps3_products WHERE ProductLive = 1 GROUP BY GroupingID ORDER BY ProductName";




but you could change this to order by another column if you like.

Sign in to reply to this post

mr. graphic

Drop Down Of Categories

I am talking about the Drop Down Menu of the categories, not the one on the left, the one one the left seem to be in alphabetical order, but the drop down menu is not??

Sign in to reply to this post

Jason ByrnesWebAssist

add the order by clause to the CSSMenuWriter/CSSMW_home/menu.php page.

change line 65:

php:
$query_menuwriter_categories1 = sprintf("SELECT CategoryName, CategoryID, CategoryParent FROM ps3_categories WHERE CategoryParent=%s", GetSQLValueString($catID, "int"));




to:

php:
$query_menuwriter_categories1 = sprintf("SELECT CategoryName, CategoryID, CategoryParent FROM ps3_categories WHERE CategoryParent=%s ORDER BY CategoryName DESC", GetSQLValueString($catID, "int"));





and change line 91:

php:
$query_menuwriter_categories = "SELECT CategoryName, CategoryID FROM ps3_categories WHERE CategoryParent = 0";




to:

php:
$query_menuwriter_categories = "SELECT CategoryName, CategoryID FROM ps3_categories WHERE CategoryParent = 0 ORDER BY CategoryName DESC";
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...