Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by sumit_bhatia

  1. By default prestashop do not offer filter by rating. You can do it in two ways. Either create one feature rating and define rating to it, you can add this customize feature to the product filter but here the rating will be added by the admin while adding product. 


    Another way is to write one module in you prestashop website which will automatically does the following. 




  2. PFB, the XML Sent... 


    <?xml version="1.0" encoding="UTF-8"?>
    <prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
        <id_category_default xlink:href="http://www.itechkart.com/api/categories/2">2</id_category_default>
        <id_default_image notFilterable="true"></id_default_image>
        <id_default_combination notFilterable="true"></id_default_combination>
        <position_in_category notFilterable="true">8</position_in_category>
        <manufacturer_name notFilterable="true"></manufacturer_name>
        <quantity notFilterable="true">10</quantity>
        <type notFilterable="true">simple</type>
        <date_add>2015-11-21 10:00:17</date_add>
        <date_upd>2015-11-21 10:24:40</date_upd>

  3. Hello,


     I have created the shops using Prestashop version Everything is working fine except the product quantity is not getting updated via webservice call. We have integrated it with Unicommerce as well, whenever they are trying to synch the inventory for products it is returning blank response. 


     To test the same i have created webservice client using PrestashopWebserviceCall.php. I am able to reterieve, delete products using it but whenever i am trying to update the product quantity or adding new product, it is returning an error stating BAD ID.. 


    You can check the response XML as well as exception message below:


    <?xml version="1.0" encoding="UTF-8"?><prestashop xmlns:xlink="http://www.w3.org/1999/xlink"><errors><error><code><![CDATA[93]]></code><message><![CDATA[parameter "manufacturer_name" not writable. Please remove this attribute of this XML]]></message></error></errors></prestashop>

    object(PrestaShopWebserviceException)#3 (6) { ["message:protected"]=> string(104) "This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request." ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(67) "/home/samplewo/public_html/PSWebserviceCall/PSWebServiceLibrary.php" ["line:protected"]=> int(91) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(67) "/home/samplewo/public_html/PSWebserviceCall/PSWebServiceLibrary.php" ["line"]=> int(359) ["function"]=> string(15) "checkStatusCode" ["class"]=> string(20) "PrestaShopWebservice" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> int(400) } } [1]=> array(6) { ["file"]=> string(63) "/home/samplewo/public_html/PSWebserviceCall/examples/Update.php" ["line"]=> int(72) ["function"]=> string(4) "edit" ["class"]=> string(20) "PrestaShopWebservice" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(3) { ["resource"]=> string(8) "products" ["putXml"]=> string(2412) " 105 0 0 2 0 08 10 simple 1 AA123 0.000000 0.000000 0.000000 0.000000 0 0 0 0 0 0 0.000000 1 0.000000 0.000000 0.000000 0.00 0 0 0 1 404 0 1 0000-00-00 new 1 1 both 0 2015-11-21 10:00:17 2015-11-21 10:24:40 3 " ["id"]=> string(3) "105" } } } } } Other error
    This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request.

    Please look into this matter as updating inventory is an essential feature and using webservice it is not happening. 
    Looking forward for quick response.
    Thanks and Regards
       Sumit Bhatia
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More