Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Shipping Text Localization

  1. #1
    lkkol is offline Member
    Join Date
    Mar 2009
    Posts
    54

    Default Shipping Text Localization

    How do I get USPS and FedEx to return text that is in spanish, english or french depending on the users localization

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    First, I would create string resources for each of the shipping method names (this way you can create different method names for each locale).

    The right way to continue would be to open up the RTShipping class in the AspDotNetStorefrontCore project (requires source code), and implement your own check of the methods returned, and based on the method returned instead of using the name returned by USPS or FedEx replace it with the appropriate string resource for the customers current locale. This method requires a recompile.

    If you don't have the source code, you could a similar thing in the checkoutshipping.aspx.cs page, but you'd have to resort to creating a method that would do a String.Replace on the shipping method HTML that is rendered to the page, looking for each instance of shipping methods you know will be returned by FedEx and USPS and replacing them with the appropriate string resource. This method could get a bit messy, but should still get the job done without requiring source code.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>