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.
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.
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?
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
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.
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?
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.
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.
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.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.