close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Product Size Problem

Thread began 12/21/2009 2:12 pm by wing183873 | Last modified 1/29/2010 2:34 pm by Jimmy Wu | 1716 views | 5 replies |

wing183873

Product Size Problem

Hi, I'm trying to figure it out how to fix the product size drop down menu.

I would like it to be:
Size
Small
Medium
Large
Xlarge

But every time that I add a Size into it, the order becomes random like the example below:

Large
Medium
Size
Small
Xlarge

how can I arrange it so that it can look in orderly matter?

Thank You

Sign in to reply to this post

wing183873

Originally Said By: wing183873
  Hi, I'm trying to figure it out how to fix the product size drop down menu.

I would like it to be:
Size
Small
Medium
Large
Xlarge

But every time that I add a Size into it, the order becomes random like the example below:

Large
Medium
Size
Small
Xlarge

how can I arrange it so that it can look in orderly matter?

Thank You  




I just notice that every time I add a Value for Size it puts it in Alphabetical order instead of put in it in the other that I want. How can I fix this. Help Please!

Sign in to reply to this post

Jason ByrnesWebAssist

on the product detail page, change line 429:

php:
$query_OptionValues = sprintf("SELECT options.OptionName, productoptions.ProductID, products.ProductLive FROM options INNER JOIN productoptions ON productoptions.OptionID = options.OptionID INNER JOIN products ON products.ProductID = productoptions.ProductID WHERE OptionGroupID = ".$row_ProductOptions['OptionGroupID']."  AND GroupingID = (SELECT GroupingID FROM productoptions WHERE productoptions.ProductID = ".$PIDParam_ProductOptions." LIMIT 1) ".$AddToWhere." ORDER BY OptionName", GetSQLValueString($OGIDParam_OptionValues, "int"));



to:

php:
$query_OptionValues = sprintf("SELECT options.OptionName, productoptions.ProductID, products.ProductLive FROM options INNER JOIN productoptions ON productoptions.OptionID = options.OptionID INNER JOIN products ON products.ProductID = productoptions.ProductID WHERE OptionGroupID = ".$row_ProductOptions['OptionGroupID']."  AND GroupingID = (SELECT GroupingID FROM productoptions WHERE productoptions.ProductID = ".$PIDParam_ProductOptions." LIMIT 1) ".$AddToWhere." ORDER BY OptionID", GetSQLValueString($OGIDParam_OptionValues, "int"));




this will set the list to display in the order you add the options.

Sign in to reply to this post

Jimmy Wu

If you look in your Products_Detail.php page and find the $query_OptionValues = sprintf....

Find the part that looks like this " ORDER BY OptionName" and you can delete the part that is contained in the quotes, but leave the quotes.

This will display the options in the same order that is displayed in the admin section.

Sign in to reply to this post

jaa397769

it works but?

Why do I have to enter my options backwards to get it to display correctly, for example, I have to put it in as such

XL-L-M-S-XS for it to view as XS-S-M-L-XL

That doesn't seem right. Please advise.
THank you

Sign in to reply to this post

Jimmy Wu

You don't if you make the modification. The ORDER BY clause can be ordered by ASC or DESC depending on how you set it.

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...