gusman126 Posted April 17, 2022 Share Posted April 17, 2022 Hi, I'm trying to add this to the order_conf and payment emailshttps://developers.google.com/gmail/markup/reference/order#json-ld I use the hook and I can generate the variable, Json or html, I try to add the variable to the order_conf and payment files in the /mail/ folder But I can't get it to show, just some empty "div". If I add some text, it is displayed correctly in the email. But I can't get it to be an html or Json. I'm testing with getPartialRenderer()->render and using my own .tpl file but I can't get it to work. $order_meta_html = $this->getEmailTemplateContent(dirname(__FILE__).'/mails/_partials/order_meta.tpl', Mail::TYPE_HTML, $product_var_tpl_list); It seems to me that the Prestashop system should have had this for a long time https://developers.google.com/gmail/markup/reference/order#json-ld 1 Link to comment Share on other sites More sharing options...
gusman126 Posted April 17, 2022 Author Share Posted April 17, 2022 (edited) Code: Result : Edited April 17, 2022 by gusman126 (see edit history) Link to comment Share on other sites More sharing options...
gusman126 Posted April 17, 2022 Author Share Posted April 17, 2022 Check other codes : In OrderCarrier.php Result : Link to comment Share on other sites More sharing options...
gusman126 Posted April 20, 2022 Author Share Posted April 20, 2022 Bueno después de varias pruebas y códigos. El sistema si que añade los códigos html, cuando llega el email a Gmail o a otro sistema, este lo elimina automáticamente, esto hace que no reconozca los "meta" y por lo tanto no muestra información adicional. Cuando llega el email a Gmail tiene l opción de "mostrar original" y ahí puedo comprobar que todo el código html es perfecto. Ahora ,porque lo elimina? Me parece que el problema está en las configuraciones de Dkim, spif, y otras opciones de seguridad del dominio, parece que es necesario que el servidor ,dominio y DNS tengan certificados y configuración perfecta anti spam. Seguiremos informando. Disculpas que esté en castellano, escribiendo desde el teléfono. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now