MSPress Site Address Form Error in German Site Server 3.0

ID: Q193013

The information in this article applies to:

SYMPTOMS

In the German version of the Site Server 3.0 Commerce Edition "MS Press" sample site, two errors were introduced into COMMSPress\member\xt_orderform_prepare.asp during the localization process.

The address form field labeled "Bundesland" (State) is limited by program logic to only two characters. This prevents users from entering any more than two characters into the field.

RESOLUTION

This problem is caused by the "DEU" value in the following code. It should be reverted to "USA" in order for the logic to reach the else statement (The else statement is intended to be used for non-US state field entries.)

The second problem is that the error message associated with the else statement advises users to enter between 1 and 50 characters, even though the field is limited to 30 chars. The fix here is to simply change the "50" in the error message to "30."

The broken code from xt_orderform_prepare.asp follows:

   if mscsOrderForm.ship_to_country = "DEU" then
        mscsOrderForm.ship_to_state =
   mscsPage.RequestString("ship_to_state", null, 2, 2)
        if IsNull(mscsOrderForm.ship_to_state) then
            errorList.Add("Versand an Bundesland muss eine Zeichenfolge
   zwischen 1 und 50 Zeichen sein")
        end if
    else
        mscsOrderForm.ship_to_state =
   mscsPage.RequestString("ship_to_state", null, 1, 30)
        if IsNull(mscsOrderForm.ship_to_state) then
            errorList.Add("Versand an Bundesland muss eine Zeichenfolge
   zwischen 1 und 50 Zeichen sein")
        end if
    end if

STATUS

Microsoft has confirmed this to be a problem in the German-language version of Site Server 3.0 Commerce Edition.

Additional query words: ss3

Version           : WINNT:3.0
Platform          : winnt
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: October 5, 1998