Jump to content

JCV

Members
  • Posts

    26
  • Joined

  • Last visited

About JCV

  • Birthday 10/22/1967

Profile Information

  • Location
    Belgium
  • Interests
    Everything !

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JCV's Achievements

  1. Hello aruiz0922, Have you found solution for errors with blank page ? I upgraded to lastest version and I've got the same problem.
  2. 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 image=@image.jpg -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 image=@image.jpg -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
  3. Hello, Me, I use CURL in command ligne. Available for linux or windows https://curl.haxx.se/ JC
  4. The problem is totaly fixed ! OVH.COM has a Firewall who stops spécific trafics. Somebody from the OVH forum helped me. Thank you for your help to. JC
  5. I still have one problem. I can do POST and GET but I can't do PUT. Apache send me 403 forbidden
  6. Thank you El Patron. The solution is adding ' -A "Mozilla" ' Now it's ok !
  7. I can connect to a Prestashop 1.7.2.4. It seems that the problem comes from apache but I don't know where to look
  8. Hello, I actived Webservices and created a user. When I go to tha url/api/ with a browser, user is asked then api is browsed. When I use curl (in command line) with --user usercode: url/api/ I'v got an error 403. I use Prestashop 1.7.4 on OVH server. I do the same on Prestashop 1.6 on ONE server, everything is ok. Must I change a parametre on OVH ? Is something change in 1.7.4 ? Thank you for your help. JC
  9. Hello, I'm software writter and yes I think it's bug in the linklist managing module. As I already said, when you delete a linklist bloc, the PS_module_hook is not removed (you can see them in the database). I think when PS creates its page, if it saw a hook, it prepares a div to put the linklist bloc even if there is no data to display. The best solution is to add the delete of the hook when you remove a linklist bloc. A second solution is to verify if there is any link to display before create the div. I tried to remove manually the bad records in the PS_module_hook and everything is ok. JC
  10. I found the problem. When you remove a list of link. The link between the module and the hooks is not removed !
  11. More informations When I look with firefox analyser. I saw div between de body and the main. It is this div that push the "call us" bloc ! </head> <body id="index" class="lang-fr country-be currency-eur layout-full-width page-index tax-display-enabled"> <div class="col-md-4 links"> <div class="row"> </div> </div> <main> <header id="header">
  12. Hello from Belgium, Sorry for my english. I installed PS 1.7.4 The module Address of the company (Coordonnées in french) is actived so I have in upper left "Call us" with phone (Appelez-nous ... in french). I tried to create a new list of link (liste de liens) displayed after the "bodyopeningtag" then I deleted it. Since "Call us" is displayed in the middle of the top. Impossible to return it on the left. I tried to create a new list of link displayed to the top, the main menu gone to the right. I deleted the list, the menu not came back to the left. It seems that when you create a list then delete it, something remains and is considered in the design of the main page ??? See the joined picture. When I turne off the list of link module, everything come back to the right place (see 2) JC
  13. Hello, Thank you for your answer. I use the classic Theme and no image is deplayed when product has no picture. Here my test site : http://www.fabelsold.be/shop/ JC
  14. I receive no solution then I modified the WebserviceSpecificManagementImages.php. Now I can update an image like this : curl -F image=@thenewpict.jpg --user MYKEY: www.myshop.com/api/images/pictures/idprod/idpict -o answer.xml It is a POST with : idprod = id of the prodct idpict = id of the image to replace I know now why the doc of presta 1.6 said use POST rather PUT, I think it is because the picture file is lost with PUT. WebserviceSpecificManagementImages.php
  15. Bonjour, I use Prestashop 1.7.2.4 Is-it possible to define a default image for products with no images ? Est-il possible de définir une image par défaut pour les produits qui n'ont pas de photo ? Merci
×
×
  • Create New...