Prestashop 1.5.6.X - Webservice error

Prestashop 1.5.6.X - Webservice error

This article explains how to fix the communication between Prestashop 1.5.6.X and Boostmyshop.

Prestashop 1.5.6.X has a bug regarding API call when we try to load a collection for a specific range (for example get all products with ID between 0 and 99)

In such case, you will see the following error in the feed executions : 




To fix it, follow these instructions : 
  1. Edit file classes/webservice/WebserviceRequest.php
  2. Search for function getSQLRetrieveFilter
  3. Replace : elseif (preg_match('/^([\d\.:-\s]+),([\d\.:-\s]+)$/', $matches[2], $matches3))
  4. With : elseif (preg_match('/^([\d\.:\-\s]+),([\d\.:\-\s]+)$/', $matches[2], $matches3))


    Unlock your online store's potential

    Whatever your e-commerce business, discover how to streamline your operations and boost your business growth with Boostmyshop.