rferrero Posted October 4, 2011 Share Posted October 4, 2011 Hola, Pretendo leer un xml con pedidos realizados de otra web y quisiera integrarlos en mi prestashop, con un webservice. Como puedo dar de alta un pedido en prestashop llamando un webservice?, el webservice de orders ya lo tengo configurado. pretendo realizarlo con php Algun ejemplo? Un saludo. Link to comment Share on other sites More sharing options...
petete2008 Posted October 4, 2011 Share Posted October 4, 2011 Revisa este enlace : http://doc.prestashop.com/download/attachments/720902/CRUD+Tutorial+EN.pdf?version=1&modificationDate=1301486324000 Link to comment Share on other sites More sharing options...
rferrero Posted October 4, 2011 Author Share Posted October 4, 2011 Gracias petete estoy en ello, lo que no entiendo es porque me da el webservice el siguiente error al conectar HTTP RESPONSE HEADER HTTP/1.1 401 Unauthorized Date: Tue, 04 Oct 2011 13:17:19 GMT Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_fcgid/2.3.5 X-Powered-By: PHP/5.2.16 WWW-Authenticate: Basic realm="Welcome to PrestaShop Webservice, please enter the authentication key as the login. No password required." Vary: Accept-Encoding,User-Agent Content-Length: 0 Content-Type: text/html; charset=utf-8 Link to comment Share on other sites More sharing options...
petete2008 Posted October 4, 2011 Share Posted October 4, 2011 Si usas la versión 1.4.3 actualiza el webservices de esa versión porque hay un bug en el mod_auth_basic http://forge.prestashop.com/browse/PSCFI-1659 Link to comment Share on other sites More sharing options...
rferrero Posted October 4, 2011 Author Share Posted October 4, 2011 Hola Mi versión de PS es 1.4.2.4, si sustituyo la carpeta webservice entera con la de PS 1.4.4.1 crees que funcionará? Un saludo Link to comment Share on other sites More sharing options...
petete2008 Posted October 4, 2011 Share Posted October 4, 2011 Yo pienso que si, de todas formas haz una copia de seguridad antes y si fallase la restauras de nuevo. Link to comment Share on other sites More sharing options...
rferrero Posted October 5, 2011 Author Share Posted October 5, 2011 Solucionado!!!!!!!!!!!!! Al final he deshabilitado smarty 3 y vuelto a habilitar y funciona Link to comment Share on other sites More sharing options...
petete2008 Posted October 5, 2011 Share Posted October 5, 2011 Gracias por compartir con los demás tu solución!! Enhorabuena!! Link to comment Share on other sites More sharing options...
rferrero Posted October 21, 2011 Author Share Posted October 21, 2011 tambien añadi a .htcacces la siguiente instrucción RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] Un saludo Link to comment Share on other sites More sharing options...
Recommended Posts