close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation

Thread began 4/27/2010 1:43 pm by adam106173 | Last modified 5/03/2010 9:20 pm by Jimmy Wu | 1029 views | 7 replies |

adam106173

Validation

Is there a way to force one to make a choice with the drop down options? Using Validation toolkit for example? I'm using PS3.

Sign in to reply to this post

Jimmy Wu

There is already validation built in to make sure that a value is selected on the dropdown lists. Is there one that you are having issues with in particular?

Sign in to reply to this post

adam106173

When I make the options, I have to put a value for each one, right? If you look at the below link, you'll see that it loads with the default value, but if a customer wanted another value but neglects to change the drop down menu, the default value will go to the cart. How do I load the page with no initial value. Secondly, on a lot of the pages, the order in the drop downs do not load right, though some pages they do. This is true for both advanced and simple options. Look at the size options on the page and notice how size A is in the middle of the list.

Products_Detail.php?ProductID=729

Sign in to reply to this post

Jimmy Wu

Ah, that was the dropdown you were looking to validate. I was thinking of the ones on the checkout page. Getting the dropdown to display an empty value and having it validate would require quite a bit of custom modification.

The product options should show up in the order that you added them. If you want them to show up in a certain order, you should change the names of the options to match the order you want them to display in.

Sign in to reply to this post

adam106173

Okay on the validation. I'll leave that one alone.

The order though is not always showing up in the order we make them. In the admin section, they are correct, but when the page loads, it is not. The link I sent you is an example of that. The sizes A, B, and C are not displaying right.
Most of the time this works, sometimes it's doesn't. Any ideas?

Also, speaking of order - the drop down menu from the horizontal navigation - products, does not match the side navigation that is on all product pages. How can I correct that?

Sign in to reply to this post

Jimmy Wu

To get the menu to order the same way the side menus are ordered, you will have to order them according to category name alphabetically. To do this, open up the file CSSMenuWriter/cssmw_home/menu.php and find the query that looks like this:
$query_menuwriter_categories = "SELECT CategoryName, CategoryID FROM ps3_categories WHERE CategoryParent = 0";

change it to look like this:
$query_menuwriter_categories = "SELECT CategoryName, CategoryID FROM ps3_categories WHERE CategoryParent = 0 ORDER BY CategoryName ASC";

After doing some testing, it looks like the issue where some of the options are not ordered correctly is caused by having a previous option deleted and the OptionID is reused. For example if you have productA that has options a, b and c, with OptionIDs 1, 2 and 3 respectively, and you delete option b, then there are only options with OptionIDs 1 and 3. If you then add an option say option d, the OptionID that is used is 2. It would take quite a bit of modification to change the way this worked. One thing you can do for the ones that are out of order is to remove that option group and add it in again or go into the database and change the OptionID for the ones you want ordered differently. There's no easier way to do this unfortunately.

Sign in to reply to this post

adam106173

What you said makes sense to me regarding the ordering, except that neither of your suggestions work. I tried deleting the whole option for this one particular product and then re-enter - still didn't work. Then I went into the database and changed the order around, but no combination works. The best I could do was have the options in reverse order, which reversed it on the page. So it's working opposite, sort of. Because also what happens is the choices start above the default. If you look at the screen shot from the db and compare to the link on my page, you'll see what I mean.

Sign in to reply to this post

Jimmy Wu

Ah, sorry, when I said change it in the database, I didn't mean in the ps3_options table, I meant you'd have to change it in the ps3_productoptions table. In that table, you'd want to modify the OptionID column to order the options around. To figure out which rows you want to modify, look at the ps3_optiongroups table and find the OptionGroupID that corresponds with the OptionGroupName that you want to modify the order of. Then go into the ps3_productoptions table and find the rows with that GroupingID.

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