Details

    • Type: Bug
    • Status: To be reproduced
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: All 1.7 versions
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Epic Link:
    • How to reproduce the issue ?:
      Recreate the situations in the issues i've mentioned.
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      Dear developers.

      While developing an application using the prestashop webservice (API) i've come across multiple issues that i think need to be mentioned, and fixed in the future.

      1 POST -> orders

      Posting orders through the webservice results in some difficullities while going through the 'addWs' function from the products class. One of the main, re-occuring errors within this loop is:

      // code placeholder
       Fatal error: Uncaught PrestaShopException: Fatal error in /home/something/domains/myUrl.nl/public_html/prestademo/classes/Tools.php:964
       Stack trace:
       #0 /home/something/domains/myUrl.nl/public_html/prestademo/classes/PaymentModule.php(236): ToolsCore::displayError()
       #1 /home/something/domains/myUrl.nl/public_html/prestademo/classes/order/Order.php(1628): PaymentModuleCore->validateOrder('475', '12', '26.99', 'Actieve betalin...', NULL, Array, NULL, false, '8ec50eee592a3c7...')
       #2 /home/something/domains/myUrl.nl/public_html/prestademo/classes/webservice/WebserviceRequest.php(1485): OrderCore->addWs()
       #3 /home/something/domains/myUrl.nl/public_html/prestademo/classes/webservice/WebserviceRequest.php(1299): WebserviceRequestCore->saveEntityFromXml(201)b
       #4 /home/something/domains/myUrl.nl/public_html/prestademo/classes/webservice/WebserviceRequest.php(526): WebserviceRequestCore->executeEntityPost()
       #5 /home/something/domains/myUrl.nl/public_html/prestademo/webservice/dispatcher.php(87): WebserviceRequestCore->f in /home/something/domains/myUrl.nl/public_html/prestademo/classes/Tools.php on line 964
       </pre></div>Other error<br />HTTP XML response is not parsable: array (
       0 => 
       LibXMLError::__set_state(array(
       'level' => 3,
       'code' => 4,
       'column' => 1,
       'message' => 'Start tag expected, \'<\' not found
       ',
       'file' => '',
       'line' => 2,
       )),
       )

       Take note that all named errors and issues are checked, payment method , module, etc where all double checked and correct.

       

       

      2 Language filtering

      Working with the webservice it is not possible to filter languages, by that i mean filtering the language of product names, combination names, etc. There is no possibility of obtaining and filtering the language id's through the `product.name.languages`

      3 Deleting products and viewing orders.

      When someone delete's a product through the admin panel of a webshop all the orders with that product will return as cancelled orders. Due to this error the orders view generated by the orders data through the webservice is corrupted. (nothing is showed).

      4 Filtering orders, products, stock, etc. on warehouse level.

      It would be nice to be able to filer the data for each different warehouse. So by setting a warehouse id filter to => 1. I would only get the data in that warehouse.

       

      These are the biggest issues i've come across untill now by using the webservice.I think there's much more potential to the API than currently offered.

      As always, thanks in advance!

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pablo.borowicz Pablo Borowicz
                Reporter:
                Deathstorm Niels van Enckevort
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: