Child pages
  • Understanding Local Settings

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

This documentation is currently being worked on. Until the stable version of PrestaShop 1.5 is released, it should not be seen as definitive.

Table of content

Table of Contents
maxLevel3
styledisc
printablefalse

...

The main page under the "Localization" tab enables you to configure the units used for your products.

Image Removed

Import Localization Pack

This section provides you with an extensive list of existing localization packs which you can import. Not only does it set your PrestaShop install with your proper local units, but it also adds many other data:

  • States. When shipping product to a country, knowing which state it is sent to can prove important, as this might have an impact on local customs and taxes. The added states can be seen and edited in the "States" page under the "Localization" tab.
  • Taxes. The real importance of localization is local taxes, and they can be numerous and varied depending on the country or the state. PrestaShop provides you with a basic support for the major taxes and tax rules. The added taxes and tax rules can be seen and edited in the "Tax" and "Tax rules" pages under the "Localization" tab.
  • Currencies. Foreign customers will appreciate to be able to convert the prices on your shop into their own currency. You should at least have US dollars and Euros available along of your country's own currency (if not one of those two). Once added, you must activate a new currency using the "Currencies" page under the "Localization" tab, and make sure the conversion rate is correct. The added currencies can be seen and edited in that "Currencies" page.
  • Languages. All the public fields on your shop can be created in multiple language, and it is important you do so for your products name and description, at the very least. Note that importing a language also imports its date format (d/m/Y, m/d/Y, d.m.Y, ...), among other things. The added currencies can be seen and edited in that "Languages" page under the "Localization" tab.
  • Units. Weight, dimension, volume, distance: as many information that are essential both for describing a product to your costumers, and for your own packaging information. These units can seen and edited on this very page, in the "Localization" section.

Image Removed

As you can see, these additional data are optional: you can choose to import the currency and language for a given country, and not its taxes, for instance.

...

The "Languages" page manages the languages you'll see in your back office and your shop.

Image Removed

The page displays the languages already installed on your shop, along with a few information: ISO code, language code, date format (short and full). You can enable or disable a language by clicking on the icon in the "Enabled" column.

Adding a new language is simply a question of important the localization pack from a country which uses that language (in the "Localization" page). If it turns out this does not work, or that you need something customized, you can add a new language manually, using the form behind the "Add new" button.

Image Removed

Adding A New Language

Warning

Creating a new language means you will have to translate all of the text for PrestaShop's front-end, back-end, modules, etc., or risk using the default English strings. Translation is made using the tool in the "Translations" page, under the "Localization" tab.

You can also create a new language in order to cater for a language pack that you would have downloaded from the PrestaShop site.

...

Finally, make sure everything works: go to your shop's front-office and click on the flags at the top. Similarly, customers can now select an additional language by using these icons.

Image Removed

Zones

PrestaShop's zones are a list of the world's subregions (http://en.wikipedia.org/wiki/Subregion). It helps categorize countries.

Image Removed

If needed, you can create more zones: click on "Add New" to display the creation form.

Image Removed

All you need is a name and a status.

...

There are roughly 195 countries in the World, but PrestaShop has 244 registered. This is because some countries include overseas regions are part of the country proper. For instance, the French departments formerly known as DOM (Guadeloupe, Martinique, Mayotte, Reunion, and French Guiana) nowadays have equals status as the French metropolitan region. Likewise, Alaska and Hawaii are US States proper.
Still, sending a package to Guadeloupe doesn't mean sending it to France, if only for the shipping fees. Therefore, the list of countries in PrestaShop actually separates the country from the mainland.

Image Removed

Be default, only your own country is enabled. You should enable them one by one, as needed for your customers. If unsure which to enable, check your stats to see the countries with most visitors.

At the bottom of the list, the "Country options" section makes it possible to have countries covered by your carriers on your appear on your front-office. We recommend you to enable that setting, as it prevents customers from having to scroll through all the country names to find their own.

Image Removed

Adding A New Country

Normally, PrestaShop comes with all current countries in the database. But in the scenario that new ones appear, you would need to add a new country.

Image Removed

  • Country. The official name of the country that you would like to add, in all supported languages. Check the countries Wikipedia page if unsure about the name.
  • ISO code. The country's ISO-3166 code, which you can find on the official ISO page: http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm.
  • Call prefix. Its international call code, which you can find on this Wikipedia page :http://en.wikipedia.org/wiki/List_of_country_calling_codes.
  • Default currency. You can use your shop's default currency (as set in the "Localization" page, under the "Localization" tab), or one of the other installed currencies. Remember that if needed, you can add a new currency to your shop using the "Currencies" page.
  • Zone. the world's subregion to which this country is attached. If necessary, you can add new zones using the "Zones" page, under the "Localization" tab.
  • Need zip code. Whether a user living in this country must give a zip code or not when signing up to your shop.
    • Zip code format. You may also give more detail on the format of the postal code (or zip code). If you don't put anything, PrestaShop will not verify the validity of the zip code when given a new address for this country.
      Use the following codes for the postal code: "L" for a letter, "N" for a number and "C" for the country's ISO code (the one which you entered in the ISO field above).
      If you do not know the country's postal code format, you can rely on this Wikipedia page http://en.wikipedia.org/wiki/List_of_postal_codes. Make sure you do NOT copy/paste the notation from Wikipedia, but to adapt it! For instance, Wikipedia indicates "AAA 9999*" for Malta, so the notation for PrestaShop becomes "LLL NNNN" (without the final *).
  • Address format. Give details about the address layout, when displaying it to customers. You can click on the various helper links on the side of the text-field in order to add more fields. In live usage, they are automatically replaced by PrestaShop with the data from the customer's account.
    Your changes are only saved when you save the whole page. If you have made a mistake, you can make use of one of the four helper buttons at the bottom of the form, depending on your situation.
  • Status. A disabled country will not be suggested as an option when a visitor wants to register and create a new account.
  • Contains states. Whether the country has "states" or not. This adds a new field to the PrestaShop address form. Note that "states" can be regions, provinces, departments... anything that makes sense to that country's postal service.
  • Need Tax identification number? and Display tax label (e.g. "Tax incl."). A Tax Identification Number is an identification number used by the country's revenue service in the administration of tax laws. Not every country needs of even has such a number for business. Inquire about this with the country's revenue service.

...

By "States", PrestaShop calls first-level administrative divisions of a country. In the United-States, they are called states; in Italy, it's regioni (singular: regione); in France, it's régions; in the United-Kingdom, it's regions. By default, PrestaShop provides you with a set of states: the 50 US states, the 13 Canadian provinces and territories, 24 Argentinian provincias, and 110 Italian province (singular: provincia).

Image Removed

Having states properly defined in your database helps better represent the delivery possibilities of your carriers. They can also be essential for tax rates calculation, depending on the country. It is therefore important to enter all of a given country's administrative divisions if they are important to your carriers. You can find a list of such divisions on this Wikipedia page: http://en.wikipedia.org/wiki/Table_of_administrative_divisions_by_country.

...

Let's create a new state. Click the "Add New" button to get to the creation form.

Image Removed

  • Name. The name of the state, as it should be displayed on invoices and the package. It should therefore be in the language of the state's country.
  • ISO code. The state's ISO-3166-2 code:
    • Go to this Wikipedia page http://en.wikipedia.org/wiki/ISO_3166-2,
    • Click the state's country two-letter code (in the "Entry" column of the main table),
    • On that page, find the state's code (it should be in a list on the page, or in the text for the smallest countries),
    • If there is one, remove the country's prefix in order to keep the code under 4 characters. For instance, the full ISO 3166-2 for Devon, in the United Kingdom, is "GB-DEV". Simply use "DEV" as the state's ISO code – it already is attached to the country using PrestaShop's "Country" drop-down menu (see next step).
  • Country. Indicate its country using the drop-down menu.
  • Zone. Indicate its geographical zone using the drop down menu. Pay attention not to use the wrong zone, as this can mix up PrestaShop's country and zone settings.
  • Status. A disabled state will not be suggested as an option when a visitor wants to register and create a new account.

...

PrestaShop can accept a large number of currencies. By default, there are three standard currencies: The Euro, the US Dollar, and the British Pound. However, you must add and configure new currencies depending on your customers needs. Indeed, customers will appreciate the ability to display your shop's prices in their country's currency.

Image Removed

The two sections at the bottom of the "Currencies" page are very simple yet essential, as relate to your currencies exchange rates (or "conversion rates"). To quote Wikipedia, "In finance, an exchange rate between two currencies is the rate at which one currency will be exchanged for another. It is also regarded as the value of one country’s currency in terms of another currency." Rates change daily, sometimes drastically depending on current events, and your shop should always be updated to the latest values.

...

  • Manually. In the "Currency rates" section, click on the "Update currency rates" button. This will download the update file from the PrestaShop.com servers using PrestaShop web-service.
  • Automatically. This is the recommended way. Instead of having to click on the "Update currency rates" button once or thrice a day, you can create a cron task that will trigger the rate file download as often as you feel necessary. Add the provided URL to your crontab file in order to activate automatic update. If you do not know what a cron task or a crontab file is, contact your hosting provider.

Image Removed

Info

Note that the rates are provided as-is: the PrestaShop team does pay attention to have correct rates in these file, but might slightly differ from the actual ones, if only because these rates can fluctuate greatly in a short time.

...

You might need to add a currency not featured in any the localization packages. In that case, you can use the creation form.

Image Removed

  • Currency. The name of the currency, preferably in English that as many customers as possible can read it.
  • ISO code. The currency's three-letter ISO 4217 code. See this Wikipedia page: http://en.wikipedia.org/wiki/ISO_4217.
  • Numeric ISO code. Its three-digit code ISO 4217 code. Same Wikipedia page as above.
  • Symbol. The currency's symbol, if any. See this Wikipedia page: http://en.wikipedia.org/wiki/Currency_sign.
  • Conversion rate. This rate is to be defined according to your shop's default currency. For example, if the default currency is the Euro and this currency is dollars, type '1.25', since 1€ usually is worth $1.25 (at the time of this writing). Use the converter here for help: http://www.xe.com/ucc/.
  • Formatting. Set up how you want your price to be displayed. The X corresponds to the currency's symbol. You have four possibilities. The "Blank" selector also enables you to include a blank between the sign and the price.
  • Decimals. You can indicate whether your shop should display decimals. While you may choose to have all your prices be a round number, discounts and other price variations might warrant decimals. You can prevent them with this option.
  • Spacing. Once you have chosen the currency's formatting, you can choose whether to have a space character between the symbol and the price itself. Some languages require this. For instance, Spanish people would use "50€" whereas French people would use "50 €". Choose whichever you feel is best.
  • Enable. Any currency can be disabled at any time, both from its own edit page, and the currencies table on the "Currencies" page.

...

You cannot directly apply a tax to a product, you can only apply tax rules. Therefore, you must first register all relevant taxes, then create a tax rule for that tax in order to specify the countries the tax applies, and finally set the tax rule to the product.

Image Removed

Tax Options

At the bottom of the page is the "Tax options" section. These options apply to the whole shop, and all of the orders.

Image Removed

  • Enable tax. Whether or not taxes are included in each purchase.
  • Display tax in cart. You might prefer the customer not to be aware of the taxes that are applied to the order. In that case, disable this option.
  • Base on. The customer can choose to have the product not delivered at the same address as the one the order invoice should be sent to. This can have a great impact on taxes. By default, PrestaShop bases its tax rates on the delivery address, but you can choose to have them based on the billing address.
  • Use ecotax. The ecotax refers to "taxes intended to promote ecologically sustainable activities via economic incentives". It is a tax that shop owners pay in order to "feel the social burden of their actions". Learn more about ecotax on this Wikipedia page: http://en.wikipedia.org/wiki/Ecotax
    Once you have enable the use of ecotax, all your products will feature an "Eco-tax (tax incl.)" field in their "Prices" tab. You should fill that field with the exact value of the tax, which depends on your country's tax laws (it is probably based on the product's price). Image Removed

Note that if you have set ecotaxes for your products already, and that you choose to disable ecotax, then all your products will lose their ecotax settings.
If you decide to enable the ecotax after having added products, you will have to edit them all in order to set the tax properly for each product.
The ecotax will also appear to the customer, on the product's page

...

.

...

Adding A New Tax

Adding a new tax is very easy, because tax rules take out all the burden of having to specify the countries where the tax applies. The creation form is therefore very short:

  • Name. Be very specific, as this will help you build tax rules faster.
    It is a recommended to add reminders within the name, such as the country/group/zone the tax applies to, and its rate. This greatly helps you remember which tax is to be used in a tax rule.
  • Rate. The exact rate, in the XX.XX format.
  • Enable. You can disable and re-enable a tax at any time.

Image Removed

Tax Rules

Info

Tax rules are a way for you to make it so that taxes are only applied to select countries.

...

You cannot directly apply a tax to a product, you can only apply tax rules. Therefore, you must first register all relevant taxes, then create a tax rule for that tax in order to specify the countries the tax applies, and finally set the tax rule to the product.

Image Removed

A few sample taxes rules are already in place, which depend on the country you chose for your shop during the installation of PrestaShop. The tax rules are set for each tax: the rules actually serve as a kind of country filter, limiting the use of that tax to a specific set of countries.
You should edit a couple of the presented rules in order to get a better grasp of how tax rules can be set.

Image Removed

Adding A New Tax Rule

You can add as many tax rules as needed to your PrestaShop installation. Not only that, but you should make sure that all of the needed tax rules are registered in your shop.

Image Removed

Creating a new tax rule is done in two steps:

...

The most important tool of the "Translation" page is in the "Modify translations" section. This is where you can choose to edit a translation, and completely customize each and every sentence if you wish so.

Image Removed

Select the part of the current translation that you wish to edit:

...

A long page then appears. It contains the hundreds of available strings for that category, sometimes split in tens of fieldsets.

Image Removed

By default, only the fieldsets which have untranslated strings are open. If you wish to open them all, click on the button on the top left twice: once to close all of them, once more to expand them all. You can open and close fieldsets one by one by clicking on its title.

...

Some strings might have a warning icon to their right. This indicates strings with placeholders. You can click on the icon to get more information.
In case of a string with a placeholder, you should make sure that the content of that placeholder will be placed in the correct flow of the sentence, and avoid literal translation.
Numbered placeholders (%1$s, %2$d, etc.) enable translators to rearrange the order of the placeholders in the string while maintaining the information each is replaced with. This way, a French translator could choose to translate "Order #%1$d from %2$s" into "Commande n°%1$s du %2$s" or "Le %2$s, commande n°%1$s".

Image Removed

Specific features

Most translation categories present their strings in the same way: the category's strings are split into fieldsets that you can close or expand by clicking on their title. The title indicates the number of expressions it contains, and when needed, the number of missing expressions, in brackets and in red.

...

  • Error messages. Strings are not split into many fieldset, they are all presented together.
  • PDF templates. There is only one fieldset, "PDF".
  • E-mail templates. Translations are split into fieldsets, but they are not simple text fields anymore. Each e-mail has two templates: and HTML one, which is styled and colored, and a text one, when is plain and simple. While the plain text one can be edited directly in the textfield, the HTML one can only be edited by clicking on the "Edit this e-mail template" button at the bottom of the preview. That click turns the preview into a WYSIWYG textfield (what you see is what you get), with a complete editor at the top (based on TinyMCE: http://www.tinymce.com/). In addition to editing the text, you can change the design as you see fit, for instance you can change the colors in order to adhere to your shop's design.
    Note that the e-mail templates feature placeholders, such as {lastname} or {shop_name}, which PrestaShop replaces with the actual values when sending the e-mail. Make sure to keep them in both your translation.

Image Removed

Add / Update A Language

PrestaShop translations are available in packs, which combine all the different translation categories into a zip file. Many language packs are available freely for you to download and install, directly from the PrestaShop.com servers. PrestaShop will take care of downloading the language pack, unpacking it and creating the correct sub-folder in your installation's /translation folder.

Image Removed

You can also update the currently installed languages, likewise directly from the PrestaShop.com servers, but be reminded that any change that you might have made to your own translations will be lost once you update it.

...

In the case where you do not want to use an official PrestaShop translation pack, but rather a custom one (either provided by someone you know, or one that you exported from another PrestaShop install), then this tool is for you.

Image Removed

Select the Zip file, select the theme to which you want that pack to be applied to, then click the "Import" button, and it will install the pack in the /translation folder.

...

You can create your own language pack using this tool, either as a way of making a backup of your customizations, or in order to share your translations with other PrestaShop installation – your own or someone else's.

Image Removed

Simple choose the language and the theme of the translation you wish to export, and click the "Export button.

...

You can copy the content of one language to another. This is especially useful when you wish to replace a theme's language with the same language from another theme.

Image Removed

Choose the source language and theme, then the destination language and theme, then click the "Copy" button. In most case, the language should remain the same in both drop-down menus.

...