Search the Community
Showing results for tags 'Webservices'.
-
Hi, I found out there is a method to do stock update on multiple product with only one request. Maybe some of you already now the way but I didnt found it when I was searsching for. Solution : 1) Create a web request to "http://your.shop.url/api/stock_availables/1&display=[id,quantity]&io_format=JSON" with your optional credentials. 2) Use method="PUT" and ContentType="application/xml" 3) Add the following XML content : "<prestashop>\n" + " <stock_available>\n" + " <id>" + id_prod1 + "</id>\n" + " <id_product>" + id_prod1 + "</id_product>\n" + " <id_product_attribute>0</id_product_attribute>\n" + " <id_shop>1</id_shop>\n" + " <id_shop_group>0</id_shop_group>\n" + " <quantity>" + quantite1 + "</quantity>\n" + " <depends_on_stock>0</depends_on_stock>\n" + " <out_of_stock>" + (quantite1 == 0 ? 2 : 0) + "</out_of_stock>\n" + " <location></location>\n" + " </stock_available>\n" + " <stock_available>\n" + " <id>" + id_prod2 + "</id>\n" + " <id_product>" + id_prod2 + "</id_product>\n" + " <id_product_attribute>0</id_product_attribute>\n" + " <id_shop>1</id_shop>\n" + " <id_shop_group>0</id_shop_group>\n" + " <quantity>" + quantite2 + "</quantity>\n" + " <depends_on_stock>0</depends_on_stock>\n" + " <out_of_stock>" + (quantite2 == 0 ? 2 : 0) + "</out_of_stock>\n" + " <location></location>\n" + " </stock_available>\n" + "</prestashop>"; Or create it with a loop : private static string RequestXML(List<MyJson.Produit> list) { var xml = "<prestashop>\n"; foreach (var prod in list) { xml += " <stock_available>\n" + " <id>" + prod.web_id + "</id>\n" + " <id_product>" + prod.web_id + "</id_product>\n" + " <id_product_attribute>0</id_product_attribute>\n" + " <id_shop>1</id_shop>\n" + " <id_shop_group>0</id_shop_group>\n" + " <quantity>" + prod.quantite_commande + "</quantity>\n" + " <depends_on_stock>0</depends_on_stock>\n" + " <out_of_stock>" + (prod.quantite_commande == 0 ? 2 : 0) + "</out_of_stock>\n" + " <location></location>\n" + " </stock_available>\n"; } return xml+"</prestashop>"; } 4) Send the request and wait for response. 5) Split the string response and check if every product's stock as been updated. Performance : Using one request per product's stock 5 stock updated per second Using one request for all the product's stock : From <1second to up to 10 seconds depending on the numbrer of stocks to update With a good server and good connection. Before that, I was sending 250+ requests in 90 seconds to sync web stock with real stock in the shop. I really hope this will help someone.
- 1 reply
-
- 1
-
- webservice
- webservices
-
(and 7 more)
Tagged with:
-
Hello, I try to connect prestashop webservices using axios but with no luck, in postman this url return results axios .get( "http://[email protected]/api/orders&display=full&output_format=JSON" ) .then(function(response) { console.log(response.data); }); does anyone know where can be problem? Thanks
- 1 reply
-
- webservices
- apc
-
(and 2 more)
Tagged with:
-
Hi team, I've installed a module, which creates a web service and respective resources (enabled methods accordingly). When I hit any endpoint (resources) I got a 401 unauthorized error on the postman. Everything is on Webservice on the back-end, the web service key is valid, resources are enabled. Can anyone please, help to understand, how I can authorize my web service resource and what I can do. Thanks in advance.
- 2 replies
-
- prestashop developer
- prestashop
-
(and 2 more)
Tagged with:
-
¿Se puede utilizar la API para crear webhooks y que se envie la información a una URL? La cuestión es no usar el panel de administración y que sea a través de la API, como este caso de WooCommerce.
- 1 reply
-
- webservice api
- webservices
-
(and 3 more)
Tagged with:
-
Qué tal, tengo una tienda prestashop instalada en un Subdominio y al momento de querer vincularla con cualquier servicio a través del apartado Prestashop Web Services, no se logra. Primera mente pensé que podría tratarse de un problema en el servidor (igual no sabría si descartar) pero las vinculaciones que hago con otros dominios van bien, no sé si sea el hecho de que en este caso se trata de un subdominio o si eso no debería ser un problema. Esta instalación de Prestashop la hice a partir de una clonación del dominio principal, el cual por su parte si se vincula a los servicios web sin ningún problema, por supuesto las Keys de vinculación que intento establecer son distintas en ambas instalaciones. No sé si por el hecho de ser una clonación halla algo que impida que se vincule correctamente.
-
- webservices
- vinculacion
- (and 3 more)
-
Bonjour, Nous avons développé une passerelle entre notre logiciel développé en dotnet et prestashop via prestasharp. J'ai posé la question la base mais c'est assez calme. Notre passerelle fonctionne très bien en 1.7.6.4 mais en version 1.7.6.5 , nous avons une erreur systématiquement en modification d'éléments (ajout/modification) Avez vous constater des modifications du protocole ou de la syntaxe attendue entre ces deux versions? Je ne vois pas de modifications dans le changelog Merci pour votre aide.
-
- 1.7.6.5
- prestasharp
-
(and 1 more)
Tagged with:
-
Salut à vous, Je viens de migrer deux sites sur un hébergement performance chez OVH. L'un sous Dolibarr, l'autre sous Prestashop. Ces deux sites échangent des données entre eux via les webservice de Prestashop. Tout fonctionnait à merveille sur mon hébergeur précédent (Maven), mais sur OVH, plus rien. Erreur 401 lors de la tentative d'accès. Une vérification du fonctionnement par l'adresse http://www.monsite.fr/api me demande la clé, mais celle-ci n'est pas acceptée, et l'authentification tourne en boucle. J'ai réinitialisé la clé d'accès, mais idem. Une configuration particulière à effectuer sur Prestashop ou OVH pour faire tourner les webservices ? Quelqu'un aurait-il une idée ?
-
Bonjour à tous, J'ai mis en place un script qui, via les webservices de Prestashop, viendrait mettre à jour le mot de passe d'un client. C'est une requête en POST qui récupère le client via son adresse email. Le problème c'est qu'il n'arrive pas à mettre à jour le mot de passe, il s'arrête juste avant et me retourne plusieurs erreurs du genre : [PHP Warning #2] SimpleXMLElement::__construct(): namespace error : Namespace prefix xlink for href on id_default_group is not defined (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)] J'ai beau relire mon code, impossible de trouver ce qui pourrait coincer. J'ai d'autres utilisations des webservices sur ce site qui fonctionnent très bien (création de client par exemple). Le code PHP : <?php define('DEBUG', true); define('PS_SHOP_PATH', 'XXXXXXXXX'); define('PS_WS_AUTH_KEY', 'XXXXXXXX'); require_once('./PSWebServiceLibrary.php'); require_once('./Encrypt.php'); $email=$_POST['email']; $decrypted=$mcrypt->decrypt($_POST['passwd']); $passwd=$decrypted; try { $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG); $filter = array( 'email' => $email ); $opt = array( 'resource' => 'customers', 'display' => 'full', 'filter' => $filter ); $xml = $webService->get($opt); $resources = $xml->children()->children(); $customer_id = $resources->customer->id; $resources->customer->passwd = $passwd; // Appel du web service $opt = array('resource' => 'customers'); $opt['putXml'] = $xml->children()->asXML(); $opt['id'] = $customer_id; $xml = $webService->edit($opt); echo "Successfully updated"; } catch (PrestaShopWebserviceException $ex) { $trace = $ex->getTrace(); if ($trace[0]['args'][0] == 404) echo 'Bad ID'; else if ($trace[0]['args'][0] == 401) echo 'Bad auth key'; else echo 'Other error<br />'.$ex->getMessage(); } ?> L'erreur retournée : <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): namespace error : Namespace prefix xlink for href on id_default_group is not defined (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): <id_default_group xlink:href="https://site.com/api/groups/3">3</id_default (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): ^ (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): namespace error : Namespace prefix xlink for href on id_lang is not defined (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): <id_lang xlink:href="https://site.com/api/languages/1">1</id_lang> (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): ^ (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): namespace error : Namespace prefix xlink for href on group is not defined (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): <group xlink:href="https://site.com/api/groups/3"> (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> <error> <code><![CDATA[3]]></code> <message><![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): ^ (/home/XXX/site/classes/webservice/WebserviceRequest.php, line 1374)]]></message> </error> </errors> </prestashop> Si quelqu'un a déjà eu ce genre de problème.... Merci d'avance pour votre aide
- 3 replies
-
- webservices
- api
-
(and 1 more)
Tagged with:
-
Hello, i am trying to build a customer login form using prestashop webservices. I am using prestashop 1.7, i've noticed that 1.7 uses bcrypt as encoding method, i've also noticed that the salt that is being used is dynamic so if i use the COOKIE_KEY as salt i can never get the same password as the one stored in the database. So my question is what do i need to do to generate the same password with the one stored in the database. Thanks in advance
- 1 reply
-
- webservices
- validation
-
(and 3 more)
Tagged with:
-
I'm trying to add customers with a code but the PrestaShop is giving me a bug. Im using PHP and XML Code: $XMLRQString = '<?xml version="1.0" encoding="utf-8"?>'. '<x:Winmax4GetEntitiesRQ xmlns:x="urn:Winmax4GetEntitiesRQ">'. '</x:Winmax4GetEntitiesRQ >'; $Params=array( 'CompanyCode'=>'', 'UserLogin'=>'', 'UserPassword'=>'', 'Winmax4GetEntitiesRQXML'=> $XMLRQString ); $return = $client->GetEntities($Params); $XMLRSString = new SimpleXMLElement($return->GetEntitiesResult); foreach ($XMLRSString->Entities->Entity as $entity) { $default_lang= Configuration::get('PS_LANG_DEFAULT'); $customer=new Customer(); $customer->email= $entity->Email; $customer->lastname= $entity->EntityType; $customer->firstname= [$default_lang => $entity->Name]; $customer->contribuinte= $entity->TaxPayerID; $customer->passwd= $entity->TaxPayerID; $customer->active = 1; $customer->add(); } ERROR: (1/1) ContextErrorException Warning: preg_match() expects parameter 2 to be string, array given in Validate.php line 172 at ValidateCore::isCustomerName(array('exemplo'))in ObjectModel.php line 1149 at ObjectModelCore->validateField('firstname', array('exemplo'))in ObjectModel.php line 981 at ObjectModelCore->validateFields()in ObjectModel.php line 284 at ObjectModelCore->getFields()in ObjectModel.php line 551 at ObjectModelCore->add(true, true)in Customer.php line 264 at CustomerCore->add()in create_clients.php line 67
-
Buen día. Tengo una duda y me gustaría saber si alguien podría ayudarme a mitigarla. tengo el siguiente código .php el cual hace una llamada al web services de la paqueteria estafeta y hace la cotización acerca del costo del envió dependiendo el Cogido Postal. <?php $client = new SoapClient('http://frecuenciacotizadorqa.estafeta.com/Service.asmx?wsdl', ['trace' => true, 'cache_wsdl' => WSDL_CACHE_MEMORY]); $servername = "localhost"; $username = "root"; $password = "comintec"; $dbname = "prestashop"; $largoprestashop; $pesoprestashop; $altoprestashop; $anchoprestashop; $cpdestino; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT width,height,depth,weight FROM ps_product WHERE id_product='2907'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $row["width"]; $anchoprestashop = $row["width"]; $row["height"]; $pesoprestashop = $row["height"]; $row["depth"]; $altoprestashop = $row["depth"]; $row["weight"]; $largoprestashop = $row["weight"]; } } else { echo "0 results"; } $sql = "SELECT postcode FROM ps_address WHERE alias='My address'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $row["postcode"]; $cpdestino = $row["postcode"]; } } else { echo "0 results"; } $largo = $largoprestashop; $peso = $pesoprestashop; $alto = $altoprestashop; $ancho = $anchoprestashop; $frecuencia = false; $tipo = true; $datos_origen = 54463; $datos_destino = $cpdestino; $result = $client->__soapCall("FrecuenciaCotizador", array(array( "idusuario" => 1, "usuario" => "AdminUser", "contra" => ",1,B(vVi", "esFrecuencia" => $frecuencia, "esLista" => true, "tipoEnvio" => array( "EsPaquete" => $tipo, "Largo" => $largo, "Peso" => $peso, "Alto" => $alto, "Ancho" => $ancho ), "datosOrigen" => array($datos_origen), "datosDestino" => array($cpdestino) ))); echo json_encode($result); ?> Mi pregunta es, donde colocar mi codigo php para que en automático haga la cotización y arroje el costo del envió en la siguiente casilla: Alguien podria orientarme un poco?
- 1 reply
-
- webservices
- prestashop
-
(and 2 more)
Tagged with:
-
Buen día. Tengo una duda y me gustaría saber si alguien podría ayudarme a mitigarla. tengo el siguiente código .php el cual hace una llamada al web services de la paqueteria estafeta y hace la cotización acerca del costo del envió dependiendo el Cogido Postal. <?php $client = new SoapClient('http://frecuenciacotizadorqa.estafeta.com/Service.asmx?wsdl', ['trace' => true, 'cache_wsdl' => WSDL_CACHE_MEMORY]); $servername = "localhost"; $username = "root"; $password = "comintec"; $dbname = "prestashop"; $largoprestashop; $pesoprestashop; $altoprestashop; $anchoprestashop; $cpdestino; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT width,height,depth,weight FROM ps_product WHERE id_product='2907'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $row["width"]; $anchoprestashop = $row["width"]; $row["height"]; $pesoprestashop = $row["height"]; $row["depth"]; $altoprestashop = $row["depth"]; $row["weight"]; $largoprestashop = $row["weight"]; } } else { echo "0 results"; } $sql = "SELECT postcode FROM ps_address WHERE alias='My address'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $row["postcode"]; $cpdestino = $row["postcode"]; } } else { echo "0 results"; } $largo = $largoprestashop; $peso = $pesoprestashop; $alto = $altoprestashop; $ancho = $anchoprestashop; $frecuencia = false; $tipo = true; $datos_origen = 54463; $datos_destino = $cpdestino; $result = $client->__soapCall("FrecuenciaCotizador", array(array( "idusuario" => 1, "usuario" => "AdminUser", "contra" => ",1,B(vVi", "esFrecuencia" => $frecuencia, "esLista" => true, "tipoEnvio" => array( "EsPaquete" => $tipo, "Largo" => $largo, "Peso" => $peso, "Alto" => $alto, "Ancho" => $ancho ), "datosOrigen" => array($datos_origen), "datosDestino" => array($cpdestino) ))); echo json_encode($result); ?> Mi pregunta es, donde colocar mi codigo php para que en automático haga la cotización y arroje el costo del envió en la siguiente casilla: Alguien podría orientarme un poco?
- 1 reply
-
- webservices
- sql
-
(and 1 more)
Tagged with:
-
Hello, I connected my ERP (not in PHP) with a Prestashop 1.7.4.4 by using WEBSERVICES. I use CURL in command line to communicate with the webshop. I can send and update Categories, Manufacturers and Products. I can insert and delete images but I can't update them 😞 Here how I send images to a product (POST) We suppose that product ID is 10. c:\curl\curl.exe -k -X POST -F [email protected] -u MYKEYXXXXXXXXX: https://www.mysite.com/shop/api/images/products/10 -o c:\tmp\answer.xml It runs well, I received an XML answer with the ID of the image, and the image. I thing sending back the image is not necessary , communication will be faster. Here how I try to update the image (PUT) We suppose that product ID is 10 and the image to update is 15. c:\curl\curl.exe -k -X PUT -F [email protected] -u MYKEYXXXXXXXXX: https://www.mysite.com/shop/api/images/products/10/15 -o c:\tmp\answer.xml I receive this message : <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <code><![CDATA[76]]></code> <message><![CDATA[Please set an "image" parameter with image data for value]]></message> </error> </errors> </prestashop> Could Somebody help me to solve my problem or tell where I can find help ? I also would like to send a legend but I don't see the solution. Thank you JC
-
- put
- webservices
-
(and 3 more)
Tagged with:
-
Salut tout le monde ! J’aimerai créer un lien entre notre logiciel de gestion (programmé avec Windev) et notre boutique prestashop en 1.7 pour mettre à jour les produits, faire des factures etc. Du coup j'ai commencé à programmer un petit logiciel en Windev qui toute les 5 minutes met à jour les produits sur le site à partir de la base données Windev et récupère les éventuelles commandes. J'ai vu qu'on pouvait presque tout faire via les webservices.. Mes requêtes HTTP en GET fonctionnent mais dès que je veux ajouter (POST) ou mettre à jour (PUT) j'ai 50000 erreurs au niveau de prestashop. Après des dizaines d'heures sur différents forum, j'ai essayé par exemple de créer un ficher XML via Windev en respectant exactement le modèle prestashop et ça ne marche pas.. Mais quand je fais exactement le même fichier XML à partir de PHP ça fonctionne très bien.... Et quand j’envoie via Formulaire en POST ça ne marche pas non plus... Auriez vous des exemples fonctionnels à me donner ? Car sur le site de Windev ils ne savent pas.. Merci par avance !
- 1 reply
-
- php
- prestashop
-
(and 2 more)
Tagged with:
-
Hello, We are a medical company with typical doctor and patient worflows that sells products on our web platform as well. we developed this all using using prestashop 1.6 We customized Core Prestashop ecommerce functionality ( to sell products ) to develop some custom functionality for doctors and patients interaction ( for eg: consultations, prescriptions etc ) resulting in a web platform where doctor and patient can interact and doctors write a prescription and then patient can buy products on the webshop using prestashop e commerce workflow. we did this because we wanted to build all this custom functionality around the e commerce framework which prestashop offered. therefore the result is a highly modified version of prestashop. We now want to develop mobile apps using native technology( android and iOS ) for our doctor patient workflow but are figuring out if we can connect the core web platform based on prestashop using webservices API of prestashop to the app framework. Does prestashop have a webservices API framework that we can use to direct data from the web platform to the mobile platform. Thanks in advance for your help. Best Regards, Vijay
- 1 reply
-
- native mobile
- api
-
(and 1 more)
Tagged with:
-
Buongiorno, sto cercando di creare un utente su in sito prestashop 1.7.0.4 e, via web service, inserirlo anche su un'altro prestashop 1.7.3.3, per fare in modo che gli utenti registrati su uno shop accedano con le stesse credenziali anche sull'altro. L'utente viene creato correttamente, ma quando provo ad accedere con le credenziali definite al momento della registrazione sul primo sito, nel secondo shop, mi restituisce l'errore di password errata, guardo sul db ed effettivamentee le criptazioni sono differenti tra loro, nonostante io abbia reso uguali, in entrambi gli shop, il paramentro COOKIE_KEY. Mentre se copio la cifratura della password del primo shop, gli utenti riescono ad accedere senza problemi. Sapreste aiutarmi? Grazie mille, Daniel.
-
donde esta la platilla de los webservices o como puedo eliminar ese botón de activar cgi de prestashop 1.7.4 se edita desde prestashop/controllers/admin/AdminWebServiceController.php y se borra aprox en la linea 94 el array de ps_webservice_cgi_host
-
- 1
-
- templates
- webservices
-
(and 1 more)
Tagged with:
-
Hi ! I want to create an order on my shops with the API, so at first I create a card with the following call : POST mypresta.com/api/carts?ws_key=my_key body: <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <cart> <id_currency><![CDATA[1]]></id_currency> <id_lang><![CDATA[1]]></id_lang> <associations> <cart_rows nodeType="cart_row" virtualEntity="true"> <order_row> <id_product><![CDATA[1]]></id_product> <id_product_attribute><![CDATA[1]]></id_product_attribute> <quantity><![CDATA[5]]></quantity> <id_address_delivery><![CDATA[1]]></id_address_delivery> </order_row> <order_row> <id_product><![CDATA[2]]></id_product> <id_product_attribute><![CDATA[2]]></id_product_attribute> <quantity><![CDATA[4]]></quantity> <id_address_delivery><![CDATA[1]]></id_address_delivery> </order_row> </cart_rows> </associations> </cart> </prestashop> and then, with the generated card, i want to create my order with a second call : POST mypresta.com/api/orders?ws_key=my_key body: <?xml version="1.0" encoding="UTF-8"?> <prestashop> <order> <id_address_delivery><![CDATA[1]]></id_address_delivery> <id_address_invoice><![CDATA[1]]></id_address_invoice> <id_cart><![CDATA[9]]></id_cart> <id_currency><![CDATA[1]]></id_currency> <id_lang><![CDATA[1]]></id_lang> <id_customer><![CDATA[1]]></id_customer> <id_carrier><![CDATA[2]]></id_carrier> <current_state><![CDATA[2]]></current_state> <module><![CDATA[cheque]]></module> <payment><![CDATA[Payment by check]]></payment> <total_paid><![CDATA[45]]></total_paid> <total_paid_real><![CDATA[45]]></total_paid_real> <total_products><![CDATA[2]]></total_products> <total_products_wt><![CDATA[2]]></total_products_wt> <conversion_rate><![CDATA[1]]></conversion_rate> <associations> <order_rows nodeType="order_row" virtualEntity="true"> <order_row> <product_id><![CDATA[1]]></product_id> <product_attribute_id><![CDATA[1]]></product_attribute_id> <product_quantity><![CDATA[5]]></product_quantity> </order_row> <order_row> <product_id><![CDATA[2]]></product_id> <product_attribute_id><![CDATA[2]]></product_attribute_id> <product_quantity><![CDATA[4]]></product_quantity> </order_row> </order_rows> </associations> </order> </prestashop> on this second call i got a response with the http code 200 and the following raw text: FATAL ERROR How can i create order on my shops from the webservices ? PS: presta version 1.5 or 1.6 or 1.7 (got the same error on all those versions)
-
HI I am using the Webservices API for the first time to assist me in converting another site into Prestashop. I am curious why I can't manage product attributes and values via the API. I can manage product_features , but not attributes? Am I missing it somewhere? Thanks
-
- webservices
- product_attributes
-
(and 1 more)
Tagged with:
-
Hello, I'm trying to update image by webservice using curl command line. To post, I do it like that : curl -F [email protected] --user Mykey: www.mysite.com/api/images/pictures/Idprod -o response.xml To put, I do it like that : curt -X PUT -F [email protected] --user Mykey: www.mysite.com/api/images/pictures/Idprod -o response.xml I'm not good in PHP but I looks in the Webservice code and I saw that $_FILES['image']['tmp_name'] was not charged in case of PUT so it can't store my picture. Have you another method to update images or is somebody found the solution ? Thank you JC
- 1 reply
-
- put
- webservices
-
(and 1 more)
Tagged with:
-
Hello guys, we have problem with imports of specific prices from web-service. We have 300 products and 1000 customers imported with webservices too. Problem is that after 10 imports it worked properly, but when we defined 300 000 price rules it´s stopped working. Now it is showing 500 error in web-services on specific price table, but in database and prestashop backoffice are defined OK. And ofcourse it is not working on front-end. Is there defined some maximum quantity for import with web-services (?) or is it that server can´t handle too many rules ? Thanks for help. Update* After decreasing number of price rules to 200 000 it is now working.
-
Bonjour A tous, Je travaille sur un outil complémentaire à ma boutique sur Prestashop 1.6.1.6 et je voudrais savoir comment vous feriez pour récupérer les "attributs des produits" de chaque produit des commandes reçues en minimisant les requêtes via l'API. Merci for your Help ! Bonne journée
- 1 reply
-
- Attributs des produits
- API
-
(and 2 more)
Tagged with:
-
Bonjour à toutes et tous Suite à l'installation du module Colissimo WebServices (ex So Flexibilité) version 3.1.08, je me suis aperçu que mes commandes Paypal (Integral Evolution) ne remontaient pas. Le paiement passe bien, les transactions sont visibles sur le BO Paypal, mais aucun mail ne part et la commande n'est pas créée dans le BO Prestashop. J'ai mis à jour Paypal en 3.10.10, ce qui n'a pas solutionné le problème. Le problème se produit sur tous les transporteurs, y compris des transporteurs "non-modules" à partir du moment ou WebServices est installé. En revanche, pas de problème avec mon autre moyen de paiement (SystemPay) Pas de problème non plus avec Paypal et mon ancien module de transporteur So Colissimo par Quadra. Après investigations, nous avons pu cerner le problème autour de la fonction getOrderTotal de la class Cart. Au retour IPN Paypal, celui-ci vérifie les détails de la commande (ce que ne fait pas SystemPay, ce qui explique pourquoi le problème ne se produit qu'avec Paypal) le détail panier est récupéré via getSummaryDetails $cart_details = Context::getContext()->cart->getSummaryDetails(null, true); getSummaryDetails fait appel au getOrderTotal du Cart qui semble perdre le Context. pas de Context, pas d'id_order Ce qu'on peut verifier d'ailleurs dans l'URL de redirection après le paiement Paypal, sur /modules/Paypal/submit.php En paramètre, l'id_cart est bon, la key aussi, mais l'id_order est à 0. Donc page de confirmation pour le client "vide". Je suis en contact depuis bientôt 3 semaines avec common-services, développeur de ce module partenaire vendu sur add-ons et donc ayant passé les "tests de validité". Mais visiblement pas testé avec Paypal. A ce jour, aucune avancée. Colissimo webservices fonctionne si on utilise pas Paypal Paypal fonctionne si on utilise pas Colissimo webservices Le problème semble être la triangulation Presta - Paypal - Colissimo webservices. D'autres dans le même cas ? Comment faire avancer les choses, vu que 202 e-commerce et common-services ne semblent vraiment pas se préoccuper du souci ? Merci ma version de Presta : 1.6.0.9
- 38 replies
-
- integral evolution
- webservices
-
(and 5 more)
Tagged with:
-
Buenos días, Estoy desarrollando un módulo para la sincronización de datos entre dos tiendas y como base del desarrollo, necesito saber la manera de activar los webservices en el proceso de instalación del módulo. Luego ya surgirán más preguntas, pero de momento, eso es lo que necesito. Muchas gracias compañeros.
-
- webservices
- php
-
(and 2 more)
Tagged with: