Jump to content

garciasanchezdani

Members
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by garciasanchezdani

  1. Buenos días @infinityl Lo que comentas sí es posible. Utiliza una query como: UPDATE `ps_product_lang` SET `name` = replace(name, 'Camiseta', 'Subanstrujenwagen') WHERE `id_lang` = 2; En la query anterior, suponemos que el id_lang del idioma alemán es el 2. Tendrías que preparar y ejecutar entonces tantas queries como reemplazos quieras hacer. Un saludo.
  2. No, that's the reason what you can make use of hooks mentioned. I usually create a module named, for example, "custom hooks", where I add hooks what I need. You can use https://validator.prestashop.com/generator to create the base of your module simply. Best regads,
  3. Yes mate! It was incredible. The problem was emails introduced by customer, with some letter in uppercase. So the fix was make lowercase of each email, before sending the email. Hope it helps to you. Best regards.
  4. Hi @thehurricane I created one hooks module, for add in it these two hooks, in addition of further hooks. I thought would be the best option. Best regards,
  5. Hi all, We have developed one new email template, named 'pending_documentation'. Ok, in this PrestaShop instance, when new order is made, the customer receive one email with this template, due to this order changes itself to this order state: pending_documentation Everything is ok, and email is arriving well in most of cases, but in some cases emails arrives to the customer with variables names, instead of variables values. For example: Someone can explain to me what's going on? Summary, we prepare one array named $mail_vars, with all custom variables, like: $mail_vars = array( '{producto_precio}' => Tools::displayPrice($amount, $currency) . ' /' . $this->module->l('mes'), . . . ); And then, we use this: $this->module->validateOrder( $cart->id, $payment_status, $amount, $module_name, null, $mail_vars, $currency_id, false, $secure_key ); To validate the order, and send the mail with the $mail_vars. Everything is ok, but I don't understand why it happens. Thanks you very much in advance.
  6. Hi all, We have developed one new email template, named 'pending_documentation'. Ok, in this PrestaShop instance, when new order is made, the customer receive one email with this template, due to this order changes itself to this order state: pending_documentation Everything is ok, and email is arriving well in most of cases, but in some cases emails arrives to the customer with variables names, instead of variables values. For example: Someone can explain to me what's going on? Summary, we prepare one array named $mail_vars, with all custom variables, like: $mail_vars = array( '{producto_precio}' => Tools::displayPrice($amount, $currency) . ' /' . $this->module->l('mes'), . . . ); And then, we use this: $this->module->validateOrder( $cart->id, $payment_status, $amount, $module_name, null, $mail_vars, $currency_id, false, $secure_key ); To validate the order, and send the mail with the $mail_vars. Everything is ok, but I don't understand why it happens. Thanks you very much in advance.
  7. Hola @Rafa TTT He buscado y he encontrado este módulo: https://addons.prestashop.com/en/combinaisons-customization/28367-combinations-table-pro.html Échale un vistazo. Aunque personalmente, pienso que lo que necesitas, puede hacerse rápidamente tocando un poco css y javascript. Un saludo.
  8. Buenos días @Pack_12 Una consulta como la siguiente te serviría: UPDATE `ps_product_lang` pl1, `ps_product_lang` pl2 SET pl1.`description` = pl2.`description`,pl1.`description_short` = pl2.`description_short`,pl1.`link_rewrite` = pl2.`link_rewrite`,pl1.`meta_title` = pl2.`meta_title`,pl1.`name` = pl2.`name` WHERE pl2.`id_lang`=1 AND pl1.id_product = pl2.id_product; No obstante, realiza antes un backup de tu tabla ps_product_lang. Espero que te ayude. Un saludo.
  9. Buenos días @Becquel Al confirmarse un pedido, el tpl que se carga es el /themes/MY_THEME/templates/checkout/order-confirmation.tpl Puedes añadir tu snippet al final del todo: <script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script> <script> window.renderOptIn = function() { window.gapi.load('surveyoptin', function() { window.gapi.surveyoptin.render( { // REQUIRED FIELDS "merchant_id": "137765381", "order_id": {Tools::getValue("id_order")}, "email": {$customer.email}, "delivery_country": "ES", "estimated_delivery_date": {$smarty.now + (60*60*24*1)|date_format:"%Y-%m-%d"}, //aqui he puesto 24 horas de entrega estimada }); }); } </script> He eliminado los campos opcionales ( OPTIONAL FIELDS ) Espero que te sirva. Un saludo.
  10. Hola @pelujo Para editar el email de pago, tienes que actualizar el fichero htdocs/classes/PaymentModule.php Por tanto, si no lo tienes aún, crea un override. Te dejo tutorial relacionado: https://devdocs.prestashop.com/1.7/modules/concepts/overrides/ En concreto, tienes que sobreescribir la función validateOrder. Un saludo.
  11. Hi @cpuin You can add this function to your module: public function hookActionOrderStatusUpdate($params) { //make something } Remember that, for your module "makes something" in that hook, its has to be added to that hook ("action order status update"). You can add by hand in backend, in positions.
  12. Buenos días, Una vez dentro, busca la cadena "Package in transit". Creo que es ahí. Un saludo!
  13. Hola @orteking Para insertar un pedido, debes seguir los siguientes pasos: Crear cliente Crear dirección Crear carrito Crear pedido En este post tienes más información:
  14. Hi, I need to add two new fields in exportation of admin customers list. The function which makes the exportation is located in /src/PrestaShopBundle/Controller/Admin/Sell/Customer/CustomerController.php:650 The function is exportAction, but I read this is not possible to override files included in /PrestaShopBundle Is there any hook available? If not...I would update code there, in CustomerController of core, but I dont like it as it is not a good practise. Thanks in advance. Post related:
  15. I solved it, thanks to these two posts: 1. https://devdocs.prestashop.com/1.7/development/components/grid/tutorials/modify-grid-in-module/ 2. https://webkul.com/blog/adding-a-new-column-in-prestashop-new-symfony-admin-controller-grid-page-with-module/ Summary, thanks to hooks actionCustomerGridDefinitionModifier and actionCustomerGridQueryBuilderModifier Best regards.
  16. Hi all, I need to add two new fields in customers listing, in backend, in PrestaShop 1.7. These two new fields are two new fields created in the table named ps_customer, in particular, optin1 and optin2. I read official doc, like this: https://devdocs.prestashop.com/1.7/modules/concepts/templating/admin-views/ But I have not it clear at all, for customers listings... Could you help me? Thanks in advance.
  17. Hi, I have the same problem. Did you find any solution? I also read about the possibility that the causer is a social module login. Do you have any module like it installed? In our case, yes, we have installed and activated the free module Social Loginizer https://www.knowband.com/es/prestashop-social-loginizer We're in contact. Best regards,
  18. Hola, ¿Has probado a acceder a la base de datos relacionada, y borrar todas sus tablas? Parece que la base de datos sobre la cual quieres instalar Prestashop, contiene ya algunas tablas... Un saludo!
  19. Hola, Seguro que este foro te sirve de ayuda... Bienvenido
  20. Hola de nuevo, prueba a añadir en tu css: @media (max-width: 1199px){ .breadcrumb-bg{ background-size: cover!important; } } Por cierto, muy chula la web! Un saludo,
  21. Buenos días, El cliente conectado, ¿tiene en su dirección, establecido el campo "población"? Me ha pasado más de una vez, y dos, ...; que un cliente no tenía este campo establecido, y los transportistas no se mostraban... La solución era marcar el campo "población" como requerido al crear / editar una dirección... Un saludo!
  22. Hola buenos días, Con css entiendo que puedes solucionarlo. Si me pasas la url puedo ayudarte. Un saludo!
  23. Buenos días, Mira este módulo gratuito: https://www.prestaheroes.com/en-us/performance-emergency-fix-disable-api-connection-to-prestashop-addons Lo que hace básicamente es deshabilitar las llamadas a la api de Prestashop, con el fin de mostrar los widgets de "noticias", "novedades", etc etc... Además, entre otras recomendaciones, se aconseja deshabilitar también el módulo de gamificación, que normalmente no se utiliza y parece que consume bastantes recursos... Espero que te sea de utilidad. Un saludo!
  24. Hola, ¿Has probado a añadir el siguiente código, al final del .htaccess? RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
×
×
  • Create New...

Important Information

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