Fonction Prestashop.ModifierImageCatégorie
[Prestashop : Modifier]
Syntaxe
Prestashop.ModifierImageCatégorie(url : < Url >, apikey : < Clé API >, elem_id : < Identifiant Image >, parent_id : < Identifiant Parent >, content : < Image >)
- url : adresse du site marchand Prestashop (obligatoire)
- apikey : clé enregistrée dans le back-office de Prestashop pour l'usage du webservice (obligatoire ; la passer par un argument plutôt que l'écrire en clair)
- elem_id (alias : elemid, itemid, item_id, img_id, imgid) : identifiant Prestashop de l'image (obligatoire)
- parent_id (alias : parentid, categorie_id, categorieid, category_id, categoryid) : identifiant Prestashop de la catégorie (obligatoire)
- content (alias : content, body) : contenu de l'image à envoyer dans Prestashop (obligatoire)
Description
Remplace une image d'un catégorie dans Prestashop. Retourne le fichier image.
Exemple
Prestashop.ModifierImageCatégorie(url : "https://monsite.fr/", apikey : <%CléApi%>, elem_id : 1, parent_id : 1, content : <%Image%>)
Retourne le fichier image.