JulianM
Members-
Posts
34 -
Joined
-
Last visited
JulianM's Achievements
Newbie (1/14)
6
Reputation
-
Recently I started to use PSWebServiceLibrary to update the product price remotely (I could not update the stock yet, but that's another story). However, in order to debug it I needed to enable display_errors in PrestaShop to see what is happening in the backend (at least in version 1.5.x). This is ok unless that your store is in live mode and you start getting users to the web at the same time. What I did was enabling the errors only for Web Service API calls that came from PSWebServiceLibrary. Here is the solution I found: 1. First, go to PSWebServiceLibrary and specify a custom User Agent. I added the following line below line 135 of PSWebServiceLibrary.php curl_setopt($session, CURLOPT_USERAGENT, 'PSWebServiceLibrary'); 2. Then, go to PrestaShop /config/config.inc.php and added the following line below the display_errors setting: if ( preg_match('/PSWebServiceLibrary/i', $_SERVER['HTTP_USER_AGENT'] )) @ini_set('display_errors', 'on'); This way, if the User Agent is PSWebServiceLibrary then it will enable display_errors, otherwise not. Hope it helps. Julian Magnone
- 1 reply
-
- 2
-
- web service api
- php
-
(and 1 more)
Tagged with:
-
Web Service - stock_available
JulianM replied to kalmmo's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
I am also looking for an answer to this same question. Any help? quantity is read only, and seems stock_availables must be added separately. -
I have a problem related to a similar query like this. Can you help me? When I try to get the list of all products, I get an empty response, the Content-Length is set to 0 in the response. However, if I specify the $opt['id']= 954; I was able to get a xml with the product details in the response. I am not sure why the API is not working for me to get a list of all products, that in fact I need it to then iterate over the existing products. I am using PS 1.5.2.0. Did you have this same issue? Or can you help me to find a way to troubleshoot it? Thanks.
-
Update 1.4.8.2 to 1.5.0.13
JulianM replied to dwilden's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Everything was messed up when I tried to upgrade from 1.4.5.1 to 1.5 using 1 Click Upgrade module. After I run it in localhost, I got all kind of errors during the process. Even when I rolled back to a previous version, the roll back feature didn't work as expected and everything was really messed up. Now, I need to create a local host environment again from the files I have in production, in order to get it work. You are adviced to upgrade this carefully using a local test environment first, in order to avoid losing files and data. -
Hi diondp. Seems I am having the same problem that you described. Did you find a solution to this problem? The fact is that we want to use PrestaShop for dropshipping where each supplier has its own carriers and fees. Additionally, in my research I found that order table in db has carrier_id so it won't be possible, at a glance to associate a supplier carrier for each detail under a single order...
-
How to add Carrier based on dropshippers
JulianM replied to thebosscv's topic in Configuring and using PrestaShop
Do you have any news on this? I am looking for this module for long time ago... -
Shipping Location Per Product / Multiple Warehouses
JulianM replied to mdaly's topic in Configuring and using PrestaShop
Did you get any news on this? I am looking for a similar solution. -
Drop Shipping With Prestashop?
JulianM replied to Elle_Elle's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
I am looking for a similar solution, but couldn't get any way to implement it yet. -
Productos en oferta
JulianM replied to Vaku's topic in PrestaShop Download: instalación, actualización y configuración
Una forma podría ser modificando la tabla ps_product directamente, aunque no se si se puede afectar con algo si hay precios especiales asociados.- 2 replies
-
- productos
- descuentos
-
(and 2 more)
Tagged with:
-
Ok, creo que entendí qué sucede. Hay que ir al Backend, Preferencias, Búsqueda y luego allí cambiar la cantidad de palabras (de 3 a 1). Luego generar el índice de búsquedas de nuevo y voilá!
-
Me pasa lo mismo, problemas con módulo buscar. Por lo que he estado averiguando esto viene acarreado de hace mucho tiempo, y en la versión 1.4.x no funciona.
-
Entiendo tu frustración, a mi tampoco me funciona...