Child pages
  • New Developers Features In PrestaShop 1.5

Versions Compared

Key

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

...

These missing modules have country-specific features, and therefore are downloaded from the PrestaShop Addons website (http://addons.prestashop.com/en/) depending on your shop's country, as set during the installation process. This way, shop owner can only access modules that are relevant to their country.

In effect, when clicking on a module's "Install" button, PrestaShop automatically downloads the most recent version of the module, further enabling you to benefit from the latest features for this module without having to update it right away.

Update System

Si il s'agit d'un module présent sur Addons (un module acheté ou un module natif), PrestaShop proposera un bouton "Mise à jour" au niveau du module et il sera alors possible de mettre à jour le module en un clic.

Le bouton apparait aussi si vous faites une mise à jour du module en uploadant le zip manuellement et que PrestaShop détecte que la version a changé.

Il est également possible de faire des fichiers d'upgrade :
Créer un répertoire /upgrade/ et placer vos fichiers d'upgrade à l'intérieur sous la forme install-VersionModule.php

// Code

Le fichier PrestaShop has new module update system. If an installed module has a new version available on the Addons website (http://addons.prestashop.com/en/), PrestaShop will display an "Update" button, and the user will be able to perform the update with a single click.
The "Update" button also appears when the module has been installed manually (by uploading the module's zip file), and PrestaShop detects that a new version is available.

You can also add an update file to your module: create an /upgrade folder in your module's folder, and put your update files in it, using the install-ModuleVersion.php name norm.

For instance, the install-1.8.0.php devra être construit de la manière suivante file should be built like so:

Code Block
<?php

// File Example for upgrade

if (!defined('_PS_VERSION_'))
  exit;

// object module ($this) available
function upgrade_module_1_8_0($object)
{
  // your update code
}

// Code

Par exemple si le répertoire contient les fichiers suivants When updating, PrestaShop will call all your update files one after the other, from the current version to the latest version. For instance, let's say the module's /upgrade folder contains the following files:

  • install-1.8.0.php
  • install-1.8.1.php
  • install-1.8.2.php
  • install-1.8.3.php

Et que vous passez de la version 1If you are updating from v1.8.1 à la version to v 1.8.3, seuls les fichiers PrestaShop will only load the two last files, install-1.8.2.php et and install-1.8.3.php seront appelés.

Theme API

Info

Coming soon...