111pinknails;11034157 wrote:Any suggestions on how to debug? In the admin part of the site if I add a new section, the url is requested to be input with no commas, no add signs, no hyphens
Considering that the system explicitly tells you NOT TO USE HYPHENS, there's no reason to debug the system. It obviously works as designed.
The code is probably splitting words in upper case letters, and then either using them all in a where clause (get products that contain either all or either on one of "games" "toys" "puzzles"), or first splitting the words and then as you suggest map each word to one of those a, b, c categories.
Of course there is no reason you'd need to use uppercase to do this. But if you choose to use something the system was not designed to handle, you would introduce the need to code for the change in usage. It's equally simply (if not more so) to split words in hyphen as to split based on uppercase. But without looking at most or even all of your system, there'd be no way to assess how much change would be required to accomodate your new wish. Or if it would be reasonably feasible to keep both usages, which I very much doubt. Use one way or the other of doing things. One possible solution would be letting you enter hyphenated words, then transforming input into uppercased words directly, before passing it on to the system just as it was. But it's still work you'd have to pay for. So the first question to ask yourself is how many hundreds of dollars are you willing to pay in order to write i-lost-some-money-for-a-good-reason instead of ThatWasAConpleteWasteOfCash? Unless you're dealing with external users. In that case you'd probably want neither of the above cases, but rather a multiple selection box or some combination of input elements that the system would convert into whatever system is needed by the system.
But as in your other thread, if this is about allowing external users to not having to follow strict input rules, I would once again guess that your system is most likely poorly designed. And I would once again recommend that you pay someone to have a good look at it to assess the situation.