language_general
E-Commerce Currency conversion and Language Switching System
|
Using language variables with the Navigation Manager |
|
|
This guide will outline how you can create language variables and use them within the navigation manager. You will first need to create your language variables for each of your different languages.
Do the above 3 steps for each language your store offers. Make sure you keep the Keyword the same.
Once you have completed this for all of your languages choose Site Menu Setup from under the Navigation heading in Occasional tasks. Now click on the edit option for the menu item you wish to use your new keyword for. In our example this is the home item. In the menu name field enter the keyword of your word. Then click submit.
Follow all of the above steps for all of the menu items you wish to dynamically change when switching languages. create new menu links and also update sub menu links. |
Language Switching |
|
| ASP Online Store can dynamically change the captions used from one language to another. Each language needs two files. The steps necessary to use this facility include: Obtain the languages files from the ASP Online Store site or translate the supplied files
You can add the following ASP statement to any ASP page or shoppage_header.htm or shoppage_trailer.htm. This will display a dropdownlist of all available languages. |
Supplied Language Files |
|
| The supplied language files are in English: shop$language_english.asp shop$language2_english.asp |
Installing a New Language |
|
|
Assuming you wish to install Spanish as your next language. Download the Spanish files from ASP Online Store. Then go to ASP Online Store administration and go to Occasional Tasks ->Languages -> Add Language
|
Reset Language |
|
|
The reset language is used to alter the default language being used by all customers. It essentially reloads all the language values from the database and resets the language application variables. This should be used after you have altered the language values using the edit or add facility. You can do this by going to Occassinal Tasks and selecting from the International drop down "Reset Languages". Select the language you wish to reset and press continue. This will force the new language settings into application memory so the site can read them. |
Drop Down List of Languages |
|
| This is used to alter the currently running language in your session. It can be used to quickly test any language changes you have made. |
Changing Language Values - Method 1 |
|
|
Language values can be changed in two ways. You can use your browser by selecting Edit Language from the language administration. The normal ASP Online Store edit display menu is shown. Search for the caption or the language keyword and make the change by editing that caption
Once the language has been updated you will need to Reset the language variables by clicking on the Reset Language link and selecting the language to update. |
Alternate method for Changing Values |
|
| The other method is to edit the files shop$language_English.asp and then upload the file to your web hosting company. Select Add a Language. ASP Online Store will update or add records as required. |
Using Language Switching |
|
| You can add the following ASP statement to any ASP page or shoppage_header.htm or shoppage_trailer.htm. This will display a dropdownlist of all available languages. <%NavigateShowLanguage%> %Navigateshowlanguages%> |
Local Currency |
|||||
ASP Online Store can display local currency. This is normally determined by where the web host is located and what their default setting is. To change to a different local currency, locate the following statement ASP Online Store Configuration.
Or you can simply set your own currency symbol.
Your local currency should now display. |
Dual Currency Display |
|||||||
ASP Online Store can display both the local currency and any other currency. ASP Online Store dynamically calculates the second currency using a conversion rate you supply. You can alter the way the conversion is done by changing the logic in shopconvertcurrency.asp
• Language ChangesIn shop$language.asp edit the captions for dual pricing const LangDualPrice=" Euro Price " const LangDualTotal=" Euro Total " |
International Currency Conversion |
|||||
ASP Online Store can provide a link to a free international currency conversion service http://www.x-rates.com . The service is is an example. It is linked from the minicart display and the following shop configuration values are required.
The xcurrencybase is the abbreviation used by x-rates.com. For your currency abbreviation, please check their site. X-rates.com may at any time change or discontinue, their service and support for changes in ASP Online Store is not guaranteed. It is up to you to determine the usefulness and accurancy of their service. ASP Online Store and X-rates.com have no relationship. |
| LCID Language | |||
The Shop Configuration value , xlcid , determines such factors as date format, currency symbol and currency format. LCIDS are supplied by Microsoft and not all may be available on all Window's systems.
|
Editing individual translateproduct records |
|||||||||||||||
|
VPASP has the ability to store different language translations for any product, category or product feature. To enable this functionality, set xtranslate to "Yes" in the shop configuration. This will ensure language translation options appear at the bottom of the normal edit form. These new options display the current translations and provide links to add a new language translation or to edit existing ones. NOTE: The product, category or product feature you wish to add language translations to, must first exist in the products table. You may then "Edit" the item, and add additional language translations.
Individual translate product records can be changed, added or deleted. The next section describes the Clicking on Add New Language, brings up a blank form. Editing Translation Record
|
| Language | A selection of languages currently installed. The default language is not included. |
| Catalogid | The product catalogid |
| Name | Product name. (cname in the database) |
| Description | Product Description (cdescription in the database) |
| More | Extended description (extendeddesc in the database) |
Navigation
At the top of the form there are two hyperlinks
Select Table translateproducts | Main Record
| Select Table translateproducts | Returns to normal edit/display of the translateproducts table |
| Main Record | Brings you back to the main product record. |
Translating Products and Categories
Translation Package |
|
|
The ASP Online Store translation facility allows you to dynamically switch major fields in the products, categories For example of the customer selects German, then the product description, product name and product The translation facility works both with template formatting and with normal ASP Online Store formatting. * Dynamic switch for product name, description and extended description |
Adding your language values |
|
|
This section assumes that you have already added additional languages and are using them to change the captions in your shop. Now you may wish to use the ASP Online Store translation facility to dynamically change product details such as description, name and extended description based on the language chosen, and want to display category names based on the language chosen by your customer. 1. When editing a product, a new button is provided to let you add and update existing translation |
Advanced Extensions |
|
|
You may wish to extend this facility to other fields with in the products table. For example you may wish to translate the pother5 field. This can be supported in templates in the form [translate pother] To make this work, you must also add the field pother5 to the translateproducts table. The standard shopa_edittranslateproducts.asp file will not automatically know about this new field but the raw ASP Online Store editor shopa_editrecord.asp will pick up the new field. The new field will NOT be translated outside of templates. |
Restrictions |
|||||||
|
Once an item is added to the cart in a specific language, it will remain in that language throughout the Only specific fields are dynamically translated. These are
|
Changing Category Template |
|||
|
If you plane to use templates and the translation facility, then you need to edit your templates such as
|
Changing Product Templates |
|||||||
|
If you plane to use templates and the translation facility, then you need to edit your templates such as In the templates you may have control statements such as: for products.
|
Bulk Updating |
|||||||||||||||||||||||||||||||
|
The translation tables, translateproducts, translatecategories and translateprodfeatures can be be bulk Translateproducts table.
Translatecategories table.
|







%Navigateshowlanguages%>



