Child pages
  • Comprender la Configuración Local
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Tabla de contenidos

Comprender la Configuración Local

Por obvio que pueda parecer, esto es Internet, y gente de todo el mundo visitará su tienda, y pedirán sus productos. Como propietario de una tienda, debe atender a tantos clientes como sea posibleEsto significa que su sitio web debe estar totalmente traducido en tantos idiomas como sea necesario, con los impuestos locales, las unidades de peso y moneda, las zonas geográficas locales, etc

El menú "Localización" apareció con PrestaShop 1.5, y reune conjuntamente muchos ajustes y herramientas de localización que estaban dispersas en varios menús en versiones anteriores .

Localización

La página principal bajo el menú "Localización" le permite configurar las unidades utilizadas para sus productos.

Importar un paquete de localización

Esta sección le ofrece una extensa lista de los paquetes de localización existentes que puede importar. No sólo le permite configurar su instalación de PrestaShop con sus propias unidades locales , sino también le permite añadir otros datos:

  • Estados. Cuando envía un producto a un país, puede ser importante saber a qué zona geográfica o estado se envía este, ya que esto podría tener un impacto en gastos de aduanas e impuestos locales. Los estados añadidos pueden ser visualizados y editados en la página "Estados" bajo el menú "Localización".
  • Impuestos. La verdadera importancia de la localización son los impuestos localesy pueden ser numerosos y variados, dependiendo del país o el estado. PrestaShop le proporciona un soporte básico para los principales impuestos y reglas tributarias. Los impuestos y reglas tributarias añadidos pueden ser visualizados y editados en las páginas "Impuestos" y "Reglas de impuestos" bajo el menú "Localizacion".
  • Monedas. Los clientes extranjeros aprecian la posibilidad de convertir los precios de su tienda en su propia moneda. Debería al menos de disponer de dólares y euros,  además de la moneda de su país (si no es una de esas dos). Una vez añadida, tiene que activar la nueva moneda utilizando la página "Monedas" bajo el menú "Localización", y asegurarse de que la tasa de conversión es correcta. Las monedas añadidas pueden ser visualizadas y editadas en la página "Monedas".
  • IdiomasTodos los campos públicos de su tienda pueden estar escritos en varios idiomas, y es muy importante que haga esto al menos para los nombres y las descripciones de sus productosTenga en cuenta que al importar un idioma  también se importa su formato de fecha (d/m/Y, m/d/Y, d.m.Y, ...), entre otras cosas. Los idiomas añadidos se pueden visualizar y editar en la página "Idiomas" bajo el menú "Localización".
  • UnidadesPeso, dimensiones, volumen, distancia: estas unidades son esenciales para describir correctamente un producto a su cliente, y para la información del embalaje de su producto. Estas pueden ser visualizadas y editadas en esta misma página, en la sección "Localización".

Como puede ver, estos datos adicionales son opcionalespuede optar por importar la moneda y el idioma de un país determinado, y no sus impuestos, por ejemplo.

Aunque no debe añadir demasiados datos locales ya que esto puede abrumar a sus clientes, puede ser útil importar el paquete de localización de aquellos países que más visitan su tienda (según sus estadísticas).

Además de las unidades por defecto, no puede eliminar automáticamente todos los datos de un determinado país; si necesita eliminar datos, tendrá que hacerlo manualmente, en sus respectivas páginas bajo el menú "Localización".

Configuración

Esta sección agrupa cuatro ajustes locales predeterminados, de primordial importancia:

  • Idioma por defectoEste es el idioma principal de su tienda. Este ajuste influye en el lenguaje de su back-office (incluyendo el idioma principal para sus productos), así como el front-office. Tenga en cuenta que el idioma del front-office podría adaptarse a la configuración del navegador del cliente.
  • País por defecto. La ubicación de su negocio. Si tiene sede en muchos países, utilice su país principal u original.
  • Moneda por defectoLa moneda en la que se establecieron por vez primera los precios de sus productos. Las divisas se añaden mediante la importación y la activación de la moneda de un país. Tenga en cuenta que si cambia de moneda después de que ya haya establecido algunos precios de productos, tendrá que actualizar manualmente todos los precios existentes. Asegúrese realizar este ajuste de una vez por todas.
  • Zona horaria. Su propia zona horaria . Especialmente útil para promociones diarias: debe saber exactamente cuándo empiezan y terminan.

Localización

Las unidades físicas que se presentan en esta sección (peso, distancia, volumen, dimensiónse utilizan tanto en las páginas de sus productos como para sus propias necesidades de embalajey en última instancia, son una parte esencial en su relación con su transportista.

Estos valores pueden ser establecidos al importar el paquete de localización para un país, pero puede editarlos manualmente tras la importación . Por ejemplo, si quiere tener centilitros en lugar de litros para la unidad de volumen, cambie el valor predeterminado "L" a "cL".

Los valores deben ser símbolos de las unidades del Sistema Internacional de Unidades (http://es.wikipedia.org/wiki/Sistema_Internacional_de_Unidades).

Avanzado

Esta última sección le pedirá que configure el idioma y el país local de su servidor, en formato de código ISO:

Estos valores pueden ser establecidos al importar el paquete de localización para un país, pero puede editarlos manualmente tras la importación .

Idiomas

PrestaShop fue diseñado para ser multilingüehay 5 idiomas predeterminados (Inglés, Francés, Español, Alemán e Italiano), y muchos más están disponibles para descargar.

La página "Idiomas" gestiona los idiomas que se pueden ver en su back office y su tienda.

La página muestra los idiomas ya instalados en su tienda, junto con alguna otra información: código ISO, código del idioma, formato de fecha (corto y completo). Puede activar o desactivar un idioma haciendo clic en el icono de la columna "Activo".

Para añadir un idioma, basta con importar la ubicación del paquete de un país que utilice ese idioma (en la página "Localización"). Si esto no funciona, o si necesita algo que se adapte mejor a sus necesidades, puede añadir un nuevo idioma manualmente, utilizando el formulario que se encuentra tras del botón "Añadir nuevo".

Crear un nuevo idioma

Crear un nuevo idioma significa que  tendrá que traducir todos los textos del front-end de PrestaShop, así como el back-end, los módulos, etc., o arriesgarse a utilizar las cadenas en inglés por defecto. La traducción se realiza con la herramienta de la página "Traducciones", bajo el menú "Localización".

También puede crear un nuevo lenguaje para integrar mejor un paquete de idioma que haya descargado desde el sitio de PrestaShop.

Para crear un nuevo idiomadebe rellenar tantos campo del formulario como sea posible

  • Nombre El nombre es público. Si va a crear este idioma para un uso regional , puede indicar este en el nombre: "Francés (Quebec)", por ejemplo.
  • Código ISO. Inttroduzca el código ISO 639-1 de 2 letras. Para obtener mayor información, consulte: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.
    Si está importando un paquete de idioma, este código debe coincidir exactamente con el del paquete.
  • Código del idioma. Introduzca las 4 letras pertenecientes al código del idioma, en el formato xx-yy, siendo xx el código ISO del idioma (igual que el anterior), e yy el código ISO del país, utilizando ISO 3166-1 alpha-2 (http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Para obtener mayor información, consulte: http://es.wikipedia.org/wiki/C%C3%B3digo_de_idioma_IETF.
  • Formato de fecha. Los países no siempre comparten la misma representación en el formato de la fecha (Consulte http://en.wikipedia.org/wiki/Date_format_by_country). Por lo tanto, cuando su tienda muestre 02/08/12, un cliente de Francia entenderá "August 2nd, 2012" mientras que otro en EE.UU. lo interpretará como "February 8th, 2012" – y un cliente japonés podría leer este como "August 12th, 2002". Por esta razón, es importante indicar el formato de fecha que esté ligado a su idioma. Las letras utilizadas deben ser las de la función de PHP date(): http://www.php.net/manual/es/function.date.php.
  • Formato de fecha (completo). Igual que el formato de fecha anterior, pero incluyendo el formato horas-minutos.
  • Bandera. Subir una imagen de la bandera que mejor se adapte al idioma  que quiera añadir. Esta debe ser de 16*11 píxeles. Le recomendamos que utilice las imágenes de banderas gratuitas FamFamFam: http://www.famfamfam.com/lab/icons/flags/.
  • Imagen "Sin imagen". Subir una imagen que será mostrada cuando un producto no cuente todavía con una foto/imagen. Esta imagen es simplemente una imagen en blanco, con el texto "Sin imagen" o "Imagen no disponible" en el idioma que se encuentre creando. La imagen debería ser de 250*250 píxeles. Puede encontrar ejemplos de imágenes "Sin imagen" en el directorio /img/l de la instalación de PrestaShop.
  • Idioma RTL. Algunos idiomas se escriben de derecha a izquierdasobre todo los que utilizan la escritura árabe o el alfabeto hebreo (http://es.wikipedia.org/wiki/Escritura_de_derecha_a_izquierda). Cuando un tema de PrestaShop está bien codificado, este permite gestionar idiomas RTL - siempre y cuando se establezca como tal.
  • Estado. Puede desactivar un nuevo idioma hasta que no se encuentre traducido completamente.
  • Selección de tienda. Puede hacer que el idioma sólo esté disponible para una selección de sus tiendas, por ejemplo tiendas cuyo objetivo sea cubrir una determinada zona local.

Una vez que haya guardado y activado este idioma , puede importar su paquete de idiomas. Esto se realiza en la página "Traducción de mensajes", bajo el menú "Localización". Utilice la opción "Importar un paquete de idioma manualmente".

Por último, asegúrese de que todo funciona correctamente: diríjase al front-office de su tienda y haga clic en las banderas situadas en la parte superior. Del mismo modo, los clientes pueden seleccionar un idioma adicional mediante el uso de estos iconos.

Zonas geográficas

Las zonas PrestaShop son una lista de las subregiones del mundo (http://es.wikipedia.org/wiki/Subregi%C3%B3n). Esto ayuda a categorizar los países.

Si lo necesita, puede crear más zonas: haga clic sobre el botón "Añadir nuevo" para visualizar el formulario de creación.

Todo lo que necesita es un nombre y un estado, para indicar por ejemplo que no se realizan entregas en Oceanía.
Si tiene establecido el modo multitienda, puede también asociar una zona con una selección de tiendas.

Países

 PrestaShop debe conocer todos los países existentes para que sus clientes indiquen claramente en qué lugar del mundo viven.

Hay alrededor de 195 países en el mundo, aunque PrestaShop tiene 244 registrados. Esto es debido a que algunos países ya incluyen las regiones de ultramar que forman parte del propio país.
Por ejemplo, los departamentos de ultramar franceses antes conocido como DOM (Guadalupe, Martinica, Mayotte, Reunión y la Guayana Francesa) tienen hoy en día el mismo nivel de importancia que una región metropolitana de Francia. Del mismo modo, Alaska y Hawai son estados propios de EE.UU.
Sin embargo, el envío de un paquete a Guadalupe no significa enviarlo a Francia, sobre todo para los gastos de envío. De hecho, para calcular los precios de los envíos PrestaShop distingue los países de los  estados y regiones.

Por defecto, sólo su propio país está activado. Debe activar los paises necesarios para sus clientes, uno por uno . Si no está seguro de cuales debe activar, revise sus estadísticas para ver los países de donde proceden la mayoría de sus visitantes.

En la parte inferior de la lista, la sección "Opciones de Países" sólo muestra en su front-office los países que cubren los transportistas habilitados. Le recomendamos que habilita esta opción, ya que evita que los clientes tengan que desplazarse a través de los nombres de todos los países para encontrar el suyo.

Añadir un nuevo país

Normalmente PrestaShop ya incluye todos los países existentes en su base de datos. Pero en el caso de que uno nuevo sea creado, tendría que añadirlo.

  • País. El nombre oficial del país que le gustaría añadir, en todos los idiomas soportados. Compruebe la página Wikipedia del país si no está seguro de su nombre.
  • Código ISO. El código ISO-3166 del país, que puede encontrar en la página oficial de la propia ISO: http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm.
  • Prefijo telefónico. El prefijo telefónico internacional del país, que puede encontrar en esta página de la Wikipedia: http://es.wikipedia.org/wiki/Anexo:Prefijos_telef%C3%B3nicos_internacionales.
  • Divisa por defectoPuede utilizar la moneda por defecto de su tienda (establecida en la página "Localización", bajo el menú "Localización"), o cualquiera de las otras monedas instaladas. Recuerde que si es necesario, puede añadir una nueva moneda a su tienda utilizando la página "Monedas".
  • Zona. Subregión del mundo a la que este país está unido. Si es necesario, puede añadir nuevas zonas utilizando la página "Zonas", bajo el menú "Localización".
  • Requiere código postal. Indica si los usuarios que viven en este país tienen que escribir su código postal o no cuando se registren en su tienda.
    • Formato del código postalTambién puede ofrecer más detalles sobre el formato requerido para el código postal. Si no rellena este campo, PrestaShop no verificará la validez del código postal cuando se le de una nueva dirección para este país.
      Utilice los siguientes códigos para la validación del código postal: "L" para una letra, "N" para un número y "C" para el código ISO del país (el mismo que introdujo anteriormente en el campo Código ISO).
      Si no conoce el formato que utiliza el código postal del país, puede encontrarlo con toda seguridad en la siguiente página de la Wikipedia http://en.wikipedia.org/wiki/List_of_postal_codes. ¡No realice un copiar/pegar de la notación que aparece en la Wikipedia, adápte esta a los códigos permitidos por Prestashop!. Por ejemplo, Wikipedia indica que el formato de código postal para Malta es "AAA 9999*", por lo que la notación válida para PrestaShop sería "LLL NNNN" (sin el * final).
  • Formato de la dirección. Proporciona detalles sobre cómo la dirección se debe mostrar a los clientes. Puede hacer clic en los diferentes enlaces de ayuda situados al lado izquierdo del campo de texto para añadir más campos. En el uso real, estos campos se sustituyen automáticamente por los datos de la cuenta del usuario.
    Las modificaciones que realice en este campo tan sólo se guardan tras hacer clic en el botón "Guardar". Si ha cometido un error, puede hacer uso de alguno de los cuatro botones de ayuda situados en la parte inferior del formulario, dependiendo de su situación.
  • Activo. Un país desactivado no será sugerido como opción cuando un visitante se registre para crear una cuenta nueva.
  • Contiene estado. Indica si el país tiene "estados" o noEsta opción añade un campo al formulario de creación de direcciones de PrestaShop. Tenga en cuenta que los "estados" puede ser regiones, provincias, departamentos... cualquier cosa que pueda hacer uso    de un servicio postal.
  • ¿Necesita el número de identificación fiscal? y Mostrar la etiqueta de impuestos (por ejemplo, "IVA incl."). El número de identificación fiscal es un número de identificación utilizado por las autoridades fiscales del país para la administración de las leyes tributarias. No todos los países  necesitan de este número. Consulte con las autoridades fiscales del país.
  • Selección de tienda. Puede hacer que el país sólo esté disponible para una selección de sus tiendas, por ejemplo tiendas cuyo objetivo sea cubrir una determinada zona local.

Estados

PrestaShop llama "Estados" al primer nivel de división administrativa de un país. En los Estados Unidos, son llamados estados; en Italia, se las conoce como regioni (singular: regione); en Francia, como régions; en Reino Unido, regions. Por defecto, PrestaShop le proporciona el siguiente conjunto de estados: los 50 estados de EE.UU., las 13 provincias y territorios canadienses, las 24 provincias de Argentina, y las 110 provincias de Italia.

Tener estados correctamente definidos en su base de datos ayuda a mejorar representativamente las posibilidades de entrega que ofrecen sus transportistas. Estos estados también pueden ser esenciales para calcular las tasas de impuestos, dependiendo del país. Por tanto, es importante introducir todas las divisiones administrativas de un país si son importantes para sus transportistas. Puede encontrar una lista de estas divisiones en la siguiente página de la Wikipedia: http://en.wikipedia.org/wiki/Table_of_administrative_divisions_by_country.

El formulario de dirección de PrestaShop sólo lista los estados que se encuentran disponibles para el cliente. Así pues, asegúrese de razonar el contenido que añada a este listado de estados. Esta es la razón por la cual, por ejemplo, la lista contiene provincias de Italia en lugar de regioni.

Añadir un nuevo estado

Vamos a crear un nuevo estado. Haga clic en el botón "Añadir nuevo" para abrir el formulario de creación.

  • Nombre. El nombre del estado, que será mostrado en las facturas y el paquete. Este debe estar por tanto en el idioma del país del estado.
  • Código ISO. El código ISO-3166-2 del estado:
    1. Diríjase a la siguiente página de la Wikipedia: http://es.wikipedia.org/wiki/ISO_3166-2,
    2. Haga clic en el código de dos letras del estado (en la columna "Entrada" de la tabla principal),
    3. En la página que se abre, busque el código de estado (debería aparecer en el listado de esta página, o directamente en el texto de los países más pequeños),
    4. Cuando lo encuentre, elimine el prefijo del páis con la finalidad de obtener un código menor a  4 caracteres . Por ejemplo, el código ISO completo para Devon, en el Reino Unido, es "GB-DEV". Sólo tiene que utilizar "DEV" como código ISO – deberá vincular este estado al país correspondiente utilizando la lista desplegable "País" (vea el siguiente paso).
  • País. Indique el país al que pertenece este estado.  
  • Zona. Indique su zona geográfica utilizando la lista desplegable. Preste atención de no utilizar una zona errónea, ya que podría confundir la zona a la que pertenece un país.
  • ¿Activar?. Un estado desactivado no será sugerido como opción cuando un visitante se registre para crear una cuenta nueva.

Monedas

PrestaShop puede aceptar una gran cantidad de monedas. Por defecto, sólo hay una moneda estándar: el Euro. Sin embargo, debe añadir y configurar nuevas monedas en función de las necesidades de sus clientes. De hecho, los clientes apreciarán la posibilidad de visualizar los precios de su tienda en la moneda de su país.

Las dos secciones que aparecen en la parte inferior de la página "Monedas" son muy simples pero esenciales, ya que están relacionadas con las tasas de cambio de las divisas (o "tasas de conversión"). Citando a Wikipedia, "En financias, el tipo o tasa de cambio entre dos divisas es la tasa o relación de proporción que existe entre el valor de una y la otra. Dicha tasa es un indicador que expresa cuántas unidades de una divisa se necesitan para obtener una unidad de la otra." Las tasas cambian diariamente, a veces drásticamente dependiendo de los acontecimientos actuales, y su tienda siempre debe estar actualizada con los últimos valores.

Para cambiar la moneda por defecto, debe ir a la página "Localización" en el menú "Localización", y utilizar la opción "Moneda por defecto" de la sección "Configuración".
Si la moneda que desea utilizar no está disponible en esta opción, debe importar la moneda desde uno de los países que la utilicen, utilizando la sección "Importar un paquete de localización" de la página "Localización".

Actualizar las tasas de cambio

En PrestaShop, hay dos formas de actualizar sus tasas de cambio:

  • Manualmente. En la sección "Tasas de cambio", haga clic en el botón "Actualizar las tasas de cambio". Esto descargará el archivo de actualización desde los servidores de PrestaShop.com utilizando el web-service PrestaShop.
  • Automaticamente. Esta es la forma recomendadaEn lugar de tener que hacer clic en el botón "Actualizar las tasas de cambio" una o tres veces al día, puede crear una tarea cron que desencadenará la descarga de los archivos de las tasas de cambio con la frecuencia que considere necesaria. Añada la URL prevista a su archivo crontab para activar la actualización automática. Si no sabe lo que es una tarea cron o un archivo crontab , póngase en contacto con su proveedor de hosting.

Tenga en cuenta que las tasas se proporcionan tal cualel equipo de PrestaShop pone mucha atención para tener las tasas correctas  en estos archivos, pero pueden diferir ligeramente de los valores reales, ya que estas tasas pueden fluctuar considerablemente en un corto período de tiempo.

Añadir una nueva moneda

The easiest way to add a country's currency is to import its localization package. This is done in the "Localization" page, under the "Localization" menu. Once import, you must go the "Currencies" page to enable it.

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

  • 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.
  • Exchange rate (or Conversion rate in earlier version). 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.31", since 1€ usually is worth $1.31 (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 five possibilities.
  • 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.
  • Shop association. You can make the currency only available to a selection of your shops, for instance shops that target a specific locale.

Taxes

Taxes are a complex subject, which should be fully understood as it can have a significant impact on your product prices or your shipping fees. While this user-guide is not meant to teach all the ins-and-outs of taxes, we will try our best to give you pointers.

Taxes are "compulsory contribution to state revenue, levied by the government on workers' income and business profits or added to the cost of some goods, services, and transactions". In short, every product you sell is subject to sales taxes, which depend on your state's tax laws. In effect, you contribute to your state or government functioning (public goods and services) with a percentage of all your sales, as defined by local tax rates.

There are hosts of tax rates in the World, and they vary considerably from one country to another, and even within a single country if it has federal states (USA, Germany, Spain, Russia...). You should therefore make sure to strictly conform to your country's tax laws, and even those of your state or town if they apply to you. Check with your local tax representative as soon as possible in order to get all the official details.

By default in PrestaShop, a tax applies to all countries/states/zones. If order to apply a specific tax rate for a single country or a set of countries (and not some others), you must create a tax rule. The tax rule is then applied on a per-product basis, during the creation of the product ("Prices" tab).

You cannot directly apply a tax to a product; you can only apply tax rules. Therefore, you must first register all relevant taxes, and 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.

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.

  • 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 enabled the use of ecotax, all your products' back-office page 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).

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.
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. Re-enabling the ecotaxe will mean having to set all your products' ecotaxes again.
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 tax 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.

Tax Rules

Tax rules make it so that taxes are only applied to select countries.

By default in PrestaShop, a tax applies to all countries/states/zones. In order to apply a specific tax rate for a single country or a set of countries (and not some others), you must create a tax rule. The tax rule is then applied on a per-product basis, during the creation of the product ("Prices" tab).

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.

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.

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.

Creating a new tax rule is done in two steps:

  1. Create the tax rule:
    • Click on the "Add new" button.
    • In the form that appears, name the rule. Use a telling name: use the tax rule's country code, its name, maybe even its rate, so as to find it again easily. If PrestaShop already has tax rules for the target country, use their name as inspiration so as to have some consistency.
    • Select whether the rule should be enabled from the get-go or not. You can enable it later if needed.
    • Click the "Save and stay" button. The page reloads, with a table header at the bottom.
  2. Specify the country and behaviors:
    • Click on the "Add new tax rule" button.
      • A new form appears. Fill in the fields:
      • Country. The target country for the rule you are creating.
        • State. Some countries have federal states registered in PrestaShop (see the "States" page, under the "Localization" menu). In that case, you can make the tax even more specific, or choose to have it applied to the whole country. You can select more than one state by pressing the Ctrl key when clicking on state names.
      • Zip Code range. Whether the country has registered states or not, you can further specify the tax application using the customer's zip code. This field enables you to define zip codes in which the tax should be applied: either enter a single zip code, or define a range using the dash. For instance, use "75000-75012" to create a range for all zip codes between these two.
      • Behavior. Some customers might have an address that matches more than one of your tax rules. In that case, you can choose how this tax rule should behave:
        • This Tax Only. Will apply only this tax, not any of the other matching taxes.
        • Combine. Combine taxes. For instance: 100€ + (10% + 5% => 15%) => 115€.
        • One After Another. Apply taxes one after another. For instance: 100€ + 10% => 110€ + 5% => 115.5€.
      • Tax. The tax to be used for this tax rule. That tax must already be registered in PrestaShop. If not: choose "Not tax", disable the tax rule, save it, go create a tax in the "Taxes" page, then come back to edit the tax rule.
      • Description. You may add a short text as a reminder of why this tax rule exists for this country.
    • Click "Save and stay". The country is added to the table below, and you can start adding another country using the new-empty fields.

Note that the default rate applied to your products will be based on your store's default country.

Translations

PrestaShop provides you with full translation tool for your shop. This helps you add and edit your pages translations. This way, you are the master of your shop, and can handle your translated strings without having to wait for official translators to publish their corrections.

Even if you do not want to correct the translators' work, you might want to change the wording they chose to use (less formal, less wordy, etc.), and customize the various available text, thus tailoring your website to your audience; for instance, a hip-hop clothing shop might be better off using different expressions from that of a luxury watches shop.

The process of adapting a program to foreign languages is called internationalization and localization, or i18n and L10n for short.
Internationalization is the first step, where developers choose a mechanism for the translation of the software. All the strings of the software are then converted to make use of this mechanism.
Localization is the second step, where bi- or multi-lingual users of the software actually translate the original strings into their own language. Localization may also include providing local data in order to further improve the software for local users.
You can learn more about i18n and L10n at this Wikipedia page: http://en.wikipedia.org/wiki/Internationalization_and_localization

The PrestaShop team has chosen to use its own built-in translation tool, so that anyone with a PrestaShop installation may customize their shop to their needs.
The community translation is done with an online and open installation of PrestaShop, located at http://translate.prestashop.com/.

The official translation packs can be downloaded manually from this address: http://www.prestashop.com/en/translations.

Modifying a Translation

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.

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

  • Front Office translations. The text visible to your customers when browsing your store.
  • Back Office translations. The text to you and your team from your store's administration panel.
  • Error message translations. The error messages that may appear on the front-office.
  • Fields Names translations. The name of the fields in both the front-office and back-office.
  • Module translations. The terms used by the installed modules. Note that modules which are available but not installed will not appear in the tool.
  • PDF translations. The terms used in the generated PDF files: invoices, delivery slips, etc.
  • E-mail template translations. The terms used in the default e-mail templates.

Some categories have a second drop-down list, which lists the available themes. PrestaShop themes have their own strings, but can also have their own modules, PDF templates and e-mail templates. The drop-down list therefore enables you to choose which theme you want to work with.

Once your selection is done, click the flag of the language in which you wish to edit that category of translation.

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

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.

Editing a translation is easy:

  • Open a fieldset,
  • Edit its content,
  • Click on either the "Update Translations and stay" button to save while and keep translating more for this category, or on the "Update translation" button to save and return to the main "Translations" page.

PrestaShop 1.5 introduces a new syntax where strings can contain placeholders, such as %s, %d, %1$s, %2$d, etc.

When you find a string with such placeholder, it means that PrestaShop will replace it with an actual dynamic value before displaying the translated string.
For instance, in the string "Your order on %s is complete", %s will be replaced by the shop's name. Therefore you should keep it in your final translation; for instance, in French, the translation would be "Votre commande sur %s a bien été enregistrée."

Technically, having placeholders prevents strings from being split in parts. Thereby, in previous version of PrestaShop, "Your order on %s is complete." would have been split in two: "Your order on" and "is complete.". While the literal translation of these worked for some language, it made translation nearly impossible for many other languages, none the less RTL languages such as Arabic or Hebrew. Thanks to the placeholders added in PrestaShop 1.5, such strings are now fully translatable in any language.

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".

Specific features

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

This is true for most categories, except three:

  • Error messages. Strings are not group into many fieldset, they are all presented together.
  • PDF templates. There is only one fieldset, "PDF".
  • E-mail templates. Strings are split into fieldsets, but they are not simple text fields anymore. Each e-mail has two templates: a 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.

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.

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.

Import a Language Pack Manually

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 installation), then this tool is for you.

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.

If there is already a language folder with the same ISO 639-1 code, it will be replaced by the files from the pack you are importing.

Export a Language

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.

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

Note that the pack will contain the theme that your translation is supposed to support.

Copy

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.

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 lists.

If there is already a language folder for this language in the destination theme, it will be replaced by the files from the language and theme you are copying.

You might prefer to first create a new language for the destination theme before copying the source language to it.

  • No labels