Title: Solutions found for commented errors
Last modified: November 27, 2019

---

# Solutions found for commented errors

 *  [dogdayfear](https://wordpress.org/support/users/dogdayfear/)
 * (@dogdayfear)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/solutions-found-for-commented-errors/)
 * I have been able to correct errors shown readed here doing the following:
 * Modifying the API call like this:
 *     ```
          //API URL to get product by ID.  Use https! 
          $requestURL = "https://" . $url . "/api/products/". $id . "&ws_key=" . $webservice_key;
       ```
   
 * Adding the API KEY to the image call:
 *     ```
          $image_id = sanitize_text_field((string)$parse_data->product->id_default_image); 
          $image_url = $url . "/api/images/products/" . $id . "/" .  $image_id . "&ws_key=" . $webservice_key; 
       ```
   
 * Plus if you want your prices shown TAX included, modify like this:
 *     ```
       function ps_product_display_price($price)
       {
          setlocale(LC_MONETARY, 'es_ES');
          return money_format('%.2n', $price*1.21);
       }
       ```
   

The topic ‘Solutions found for commented errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/product-display-for-prestashop.svg)
 * [Product Display for Prestashop](https://wordpress.org/plugins/product-display-for-prestashop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-display-for-prestashop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-display-for-prestashop/)
 * [Active Topics](https://wordpress.org/support/plugin/product-display-for-prestashop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-display-for-prestashop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-display-for-prestashop/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dogdayfear](https://wordpress.org/support/users/dogdayfear/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/solutions-found-for-commented-errors/)
 * Status: not resolved