-
Posts
113 -
Joined
-
Last visited
-
Days Won
1
garciasanchezdani last won the day on May 12 2021
garciasanchezdani had the most liked content!
About garciasanchezdani
- Birthday 11/26/1987
Contact Methods
Profile Information
-
Location
España
-
Activity
Developer
garciasanchezdani's Achievements
-
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.
-
CyberPepe started following garciasanchezdani
-
garciasanchezdani started following CyberPepe
-
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.
-
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.
-
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.
-
Añadir snippet código en Order
garciasanchezdani replied to jmelich's topic in Desarrolladores PrestaShop
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. -
Insertar referencia producto en email, PS1.7.5
garciasanchezdani replied to pelujo's topic in Desarrolladores PrestaShop
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. -
Order status change
garciasanchezdani replied to cpuin's topic in Addons, modules and themes developers
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. -
-
Inserta pedido medienta webservice
garciasanchezdani replied to jose_orte's topic in Desarrolladores PrestaShop
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: -
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:
.png.022b5452a8f28f552bc9430097a16da2.png)