Jump to content

zion

Members
  • Posts

    47
  • Joined

  • Last visited

Profile Information

  • Location
    Trapagaran
  • Activity
    Freelancer

Recent Profile Visitors

703 profile views

zion's Achievements

  1. Hello everyone, I want to share a problem that we have had, we have managed to solve it but we still do not know why it has occurred. Versions: · Prestashop 1.7.6.9 · Theme Warehouse 4.3.4 + Child Problem: · Malicious code injection in header or footer (depending on active caches) Measures taken: · Create a copy of the web for testing · Disable overrides and modules · Disable child theme and theme (warehouse) · Check with the module 1 click update the modified files · Check these files one by one until find the modification · Remove the modification that injects code Affected file: · The affected file was "config.inc.php", at the bottom of the file: We would be very grateful if someone helps us or gives us a clue as to why this could have happened and how to avoid it, thank you.
  2. Buenos días, estoy desarrollando una aplicación para la conexión de varias tiendas vía webService. En las tiendas usamos un modulo para fabricar productos a medida (ancho, largo, forma.... ). Este módulo usa un override a la clase order para modificar el nombre del producto. El problema es que si modifico el nombre del producto (en el pedido, order_detail) el override hace que seguido a mi nombre, añada los datos de la personalización. Necesitaría saber como controlo si la petición viene del webservice, para que no añada al nombre los datos de personalización. Espero haberme explicado bien, un saludo y gracias.
  3. Hello, I have managed to update an order status by adding an entry to the status history. The code that I used is: $webService = webService::webServiceTienda($tienda); try{ $opt = [ 'resource' => 'order_histories?schema=blank' ]; $xml = $webService->get($opt); $resources = $xml->order_history->children(); $resources->id_order = intval($idPedido); $resources->id_order_state = intval($id_estado); $resources->id_employee = 1; $opt = [ 'resource' => 'order_histories', 'postXml' => $xml->asXML(), ]; $createdXml = $webService->add($opt); }catch (PrestaShopWebserviceException $e){ webService::controlErroresPedidos($e, $tienda); } I have 3 stores connected in the program and two of them throw me the error 403 Is it supposed to be a server problem? Does the hosting have to fix it? The funny thing is that two of these websites are on the same hosting, different server but same hosting. HTTP / 1.1 403 Forbidden <p> Access to this resource on the server is denied! </p> EDIT: I have spoken with my host and the problem was with the PHP security module. They have added some rule and now it works perfect
  4. Debug info, i have 403 Forbidden, Access to this resource on the server is denied! All options marked in prestashop backoffice, webservice options.
  5. Hello! I have been trying for a long time to update the status of an order from php with the prestashop webService library. First I have tried to download the order, modify the "current_state" attribute and upload it via edit, without positive result, I always get the error message "other error" Now I have seen that you can add an entry in "order_histories" but I am also unable to make it work: $estadoID = (int)$_POST['estadosSelect']; $idPedido = $_GET['id']; $tienda = $_GET['tienda']; $webService = $this->webServiceTienda($tienda); try{ $opt = [ 'resource' => 'order_histories?schema=blank' ]; $xml = $webService->get($opt); $resources = $xml->children()->children(); var_dump( $resources ); $resources->id_order = intval($idPedido); $resources->id_employee = 1; $resources->id_order_state = intval($estadoID); var_dump( $resources ); $opt = [ 'resource' => 'order_histories', 'postXml' => $xml->asXML() ]; $createdXml = $webService->add($opt); var_dump( $createdXml ); }catch (PrestaShopWebserviceException $e){ $this->controlErrores($e); } var_dumps:
  6. Dejo la última respuesta de RAIOLA, estamos ya mirando otro hosting porque no podemos seguir así, ellos siguen insistiendo que el problema es de la aplicación, cuando la aplicación funciona correctamente bajo otros dominios....
  7. La verdad que estoy muy decepcionado, yo llevo relativamente poco en esta empresa y es el que utilizaban, en estos meses no han dado problema pero como han llevado este asunto ha dejado mucho que desear, muy poco profesionales, no sabian, de hecho creo k todavía no tienen ni idea que es lo que pasa.... Eso o nos quieren vender como sea un certificado de pago.... pero no creo que sea el caso, yo creo que no se enteran directamente..... Gracias por tu consejo @gusman126 Un saludo
  8. Buenas, lo primero darte las gracias por haberte molestado en ayudarnos. Después de hacer varias pruebas os expongo las conclusiones, he cambiado los nombres de los dominos, este documento ha sido enviado a RAIOLA. 1.- Web original, el día 13 de Enero recibimos el último pedido en el BackOffice, en el panel de Redsys siguen entrando. Cargamos en el mismo dominio una copia del día 8-Enero (TPV funcionando) y seguimos teniendo el mismo problema 2.- Copia de la original en SubDominio de dominioProblema(1). Hacemos varias pruebas desactivando módulos, overrides incluso el tema. Seguimos con el mismo problema 3.- Página en producción de dominioTPVok (3), en su dominio, y en el mismo HOST. TPV funcionando perfectamente. 4.- Subdominio de dominioTPVok (3), cargamos el backup de dominioProblema(1) en producción. El TPV funciona aquí, recordar que es la misma aplicación (prestashop) que el que falla en dominioProblema.com (1) 5.- Cargamos una copia de dominioTPVok en SubDominio de dominioProblema(1). Aquí el TPV falla, cuando en la página en producción funciona perfectamente (3) 6.- Cargamos una copia de dominioProblema(1) en un subdominio de otro HOST (1and1). El TPV funciona perfectamente RAIOLA Se limita a decirnos que ellos no detectan ningún problema e insisten en vendernos un certificado que dicen que no saben exactamente si va a solucionar el problema. Las pocas opciones que nos están dejando es llevarnos la web a otro host.
  9. @sylarlocke Hola, llegaste a solucionar el problema? Tenemos el mismo problema que comentan en el hilo, prestashop 1.7.4.2. y modulo de Redsys 3.0.4. Los pedidos con tarjeta no se reflejan en el BackOffice pero SI en el panel de Redsys En el panel de Redsys obtenemos un error 403 en la notificación por parte del servidor, la url que muestra la notificación es correcta. La notificación 2 por correo se envía correctamente. ¿Qué hemos intentado? Hablar con Redsys: Hablar con el Hosting (Rayola) Comprar un modulo de terceros para descartar problema del módulo, el desarrollador lo ha mirado y nos ha dicho: Hemos cargado un backup del día 8 (este día funcionaba perfectamente, hemos estado recibiendo pedidos vía redsys hasta el día 13) En este backup tenemos el mismo problema, los pedidos se registran en Redsys pero no en el panel de control de prestashop. Nuestra conclusión es que si un backup del día 8 que funcionaba (tenemos pedidos en el backoffice para probarlo, pedidos que por cierto Rayola ha visto ya que ha accedido al backoffice) ahora no funciona, podemos descartar problema en la aplicación de prestashop Como prueba adicional hemos cargado el backup del día 8 (funcionaba TPV) en un subdominio, hemos desactivado modulos y override y obtenemos le mismo resultado. Estamos ya sin ideas, nos dan largas por ambos lados y seguimos sin solucionar el problema, cualquier pista que nos puedan dar estaremos muy agradecidos.
  10. Hello, I have solved the problem by directly adding a link with the order_id: PHP: <a href="https://DOMAIN.com/adminFOLDER/index.php?controller=AdminPdf&submitAction=generateDeliverySlipPDF&id_order=[$order-> id} "> VIEW </a> The problem is that I get a security warning for the token. Any solution? Can I get a security token via webService? Thanks greetings.
  11. Hello, I am developing a website to receive orders from several prestashop. I bring the orders from php with; $ opt = [ 'resource' => 'orders', 'display' => '[id, reference, total_paid, id_customer, id_cart, id_address_delivery, current_state, payment, date_add]', 'sort' => '[id_DESC]', 'limit' => '10' ]; $ xml = $ webService-> get ($ opt); $ resources = $ xml-> orders-> children (); I have tried to change the sort to "date_add_DESC" but it does not return anything. I have thought about ordering the array when I have filled it with php's usort () function, usort($ArrayPedidos, function ($a, $b) { return strcmp($a["fecha"], $b["fecha"]); }); but I can't, any help would be good for me. thanks.
  12. Thank you very much for your quick reply, I managed to get it to work with your module in the theme's .tpl, but I still can't get it to work in "invoice.addresses-tab.tpl". Maybe I have to first bring the information to "HTMLTemplateInvoice.php" and load it into the $ data array?
  13. The correct way to display module variables in an invoice, is to receive the variables in "HTMLTemplateInvoice.php" as smarty? some example? Thank you
  14. You can access from .tpl with {$your_variable1} ? I am trying to send variables from a module to the invoice template. I can't get it to work, I'm doing something wrong: S I have also tried to load these variables into $data array of "HTMLTemplateInvoice.php", trying to save from the module as smarty variable, but I also can't edit: By doing tests, with the override I can show the variable in the theme's .tpl, but not in the invoice tpl. With the module method I can't, I have tested the functions; "hookDisplayPDFInvoice ()" and "hookactionFrontControllerSetVariables ()" what am I missing?
  15. No se cómo permiten seguir vendiendo a estos estafadores, la culpa es de Prestashop. Nosotros hemos tenido algún problema similar, son lo mas rastrero que puedas encontrarte, si encima eres una empresa pequeña te joden más todavía
×
×
  • Create New...