Fonction Prestashop.ModifierImageArticle
[Prestashop : Modifier]
Syntaxe
Prestashop.ModifierImageArticle(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_article_id, imgarticleid, product_img_id, productimgid) : identifiant Prestashop de l'image (obligatoire)
- parent_id (alias : parentid, article_id, articleid, product_id, productid) : identifiant Prestashop de l'article (obligatoire)
- content (alias : content, body) : contenu de l'image à envoyer dans Prestashop (obligatoire)
Description
Remplace une image d'un article dans Prestashop. Retourne le fichier image.
Exemple
Prestashop.ModifierImageArticle(url : "https://monsite.fr/", apikey : <%CléApi%>, elem_id : 1, parent_id : 1, content : <%Image%>)
Retourne le fichier image.