gerryfu Posted January 12, 2017 Share Posted January 12, 2017 (edited) Salve ragazzi, ho postato questo topic in altre sezioni senza avere alcuna risposta, lo riposto qui con la speranza di capire se si tratta di un problema di Prestashop, oppure di qualche impostazione mia. Ho un problema con la Mail che viene inviata dopo aver effettuato l'ordine. Praticamente non mi visualizza i dettagli di ogni singolo prodotto (riferimento, prodotto, prezzo unitario, quantità) e nemmeno le immagini dei prodotti. ) la cosa strana è che la mail inviata con il modulo mail alerts, quella che notifica al venditore un nuovo acquisto è perfetta... Cosa c'è che non va? Perchè a me non funziona? Grazie Edited January 13, 2017 by gerryfu (see edit history) Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 12, 2017 Share Posted January 12, 2017 Ciao, quale versione Prestashop utilizzi? Hai installato un altro template? Link to comment Share on other sites More sharing options...
gerryfu Posted January 12, 2017 Author Share Posted January 12, 2017 Ciao ho la versione 1.6.1.9 Ho installato il template chiamato transformer Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 12, 2017 Share Posted January 12, 2017 Il template installato ha una cartella mails? Link to comment Share on other sites More sharing options...
gerryfu Posted January 12, 2017 Author Share Posted January 12, 2017 si certo Link to comment Share on other sites More sharing options...
gerryfu Posted January 12, 2017 Author Share Posted January 12, 2017 ho aperto il file order_conf.html e nei campi che vengono visualizzati vuoti dal cliente, c'è {products} e sotto {discounts} Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 12, 2017 Share Posted January 12, 2017 Confronta questo file con quello presente nella cartella mails nella root del sito Link to comment Share on other sites More sharing options...
gerryfu Posted January 12, 2017 Author Share Posted January 12, 2017 si sono identici Link to comment Share on other sites More sharing options...
gerryfu Posted January 12, 2017 Author Share Posted January 12, 2017 la cosa strana è che ho provato a fare delle installazioni pulite di prova sia con la 1.6.10 e la 1.7.0, provando ad acquistare i prodotti demo, ed anche lì non mi visualizzava i dettagli nella mail di conferma ordine Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 12, 2017 Share Posted January 12, 2017 (edited) Per favore inserisci in un topic il codice dell'order_conf.html... così vedo le differenze Edited January 12, 2017 by developer prestashop (see edit history) Link to comment Share on other sites More sharing options...
gerryfu Posted January 12, 2017 Author Share Posted January 12, 2017 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <title>Messaggio da {shop_name}</title> <style> @media only screen and (max-width: 300px){ body { width:218px !important; margin:auto !important; } thead, tbody{width: 100%} .table {width:195px !important;margin:auto !important;} .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;} span.title{font-size:20px !important;line-height: 23px !important} span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;} td.box p{font-size: 12px !important;font-weight: bold !important;} .table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { display: block !important; } .table-recap{width: 200px!important;} .table-recap tr td, .conf_body td{text-align:center !important;} .address{display: block !important;margin-bottom: 10px !important;} .space_address{display: none !important;} } @media only screen and (min-width: 301px) and (max-width: 500px) { body {width:425px!important;margin:auto!important;} thead, tbody{width: 100%} .table {margin:auto!important;} .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;} .table-recap{width: 295px !important;} .table-recap tr td, .conf_body td{text-align:center !important;} .table-recap tr th{font-size: 10px !important} } @media only screen and (min-width: 501px) and (max-width: 768px) { body {width:478px!important;margin:auto!important;} thead, tbody{width: 100%} .table {margin:auto!important;} .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;} } @media only screen and (max-device-width: 480px) { body {width:340px!important;margin:auto!important;} thead, tbody{width: 100%} .table {margin:auto!important;} .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;} .table-recap{width: 295px!important;} .table-recap tr td, .conf_body td{text-align:center!important;} .address{display: block !important;margin-bottom: 10px !important;} .space_address{display: none !important;} } </style> </head> <body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto"> <table class="table table-mail" style="width:100%;margin-top:10px;-moz-box-shadow:0 0 5px #afafaf;-webkit-box-shadow:0 0 5px #afafaf;-o-box-shadow:0 0 5px #afafaf;box-shadow:0 0 5px #afafaf;filter:progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5)"> <tr> <td class="space" style="width:20px;padding:7px 0"> </td> <td align="center" style="padding:7px 0"> <table class="table" bgcolor="#ffffff" style="width:100%"> <tr> <td align="center" class="logo" style="border-bottom:4px solid #333333;padding:7px 0"> <a title="{shop_name}" href="{shop_url}" style="color:#337ff1"> <img src="{shop_logo}" alt="{shop_name}" /> </a> </td> </tr> <tr> <td align="center" class="titleblock" style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Salve {firstname} {lastname},</span><br/> <span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Grazie per aver ordinato presso {shop_name}!</span> </font> </td> </tr> <tr> <td class="space_footer" style="padding:0!important"> </td> </tr> <tr> <td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0"> <table class="table" style="width:100%"> <tr> <td width="10" style="padding:7px 0"> </td> <td style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px"> Dettagli dell'ordine </p> <span style="color:#777"> <span style="color:#333"><strong>Ordine:</strong></span> {order_name} Effettuato su {date}<br /><br /> <span style="color:#333"><strong>Pagamento:</strong></span> {payment} </span> </font> </td> <td width="10" style="padding:7px 0"> </td> </tr> </table> </td> </tr> <tr> <td style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <table class="table table-recap" bgcolor="#ffffff" style="width:100%;border-collapse:collapse"><!-- Title --> <tr> <th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Riferimento</th> <th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Prodotto</th> <th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;" width="17%">Prezzo unitario</th> <th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Quantità</th> <th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;" width="17%">Prezzo totale</th> </tr> <tr> <td colspan="5" style="border:1px solid #D6D4D4;text-align:center;color:#777;padding:7px 0"> {products} </td> </tr> <tr> <td colspan="5" style="border:1px solid #D6D4D4;text-align:center;color:#777;padding:7px 0"> {discounts} </td> </tr> <tr class="conf_body"> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>Prodotti</strong> </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> <td bgcolor="#f8f8f8" align="right" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> {total_products} </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> </tr> <tr class="conf_body"> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>Buoni sconto</strong> </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> {total_discounts} </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> </tr> <tr class="conf_body"> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>Confezione regalo</strong> </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> {total_wrapping} </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> </tr> <tr class="conf_body"> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>Spedizione</strong> </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> {total_shipping} </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> </tr> <tr class="conf_body"> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>Tasse pagate</strong> </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> {total_tax_paid} </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> </tr> <tr class="conf_body"> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>Totale pagato</strong> </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0"> <table class="table" style="width:100%;border-collapse:collapse"> <tr> <td width="10" style="color:#333;padding:0"> </td> <td align="right" style="color:#333;padding:0"> <font size="4" face="Open-sans, sans-serif" color="#555454"> {total_paid} </font> </td> <td width="10" style="color:#333;padding:0"> </td> </tr> </table> </td> </tr> </tbody> </table> </font> </td> </tr> <tr> <td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0"> <table class="table" style="width:100%"> <tr> <td width="10" style="padding:7px 0"> </td> <td style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px"> Spedizione </p> <span style="color:#777"> <span style="color:#333"><strong>Vettore:</strong></span> {carrier}<br /><br /> <span style="color:#333"><strong>Pagamento:</strong></span> {payment} </span> </font> </td> <td width="10" style="padding:7px 0"> </td> </tr> </table> </td> </tr> <tr> <td class="space_footer" style="padding:0!important"> </td> </tr> <tr> <td style="padding:7px 0"> <table class="table" style="width:100%"> <tr> <td class="box address" width="310" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0"> <table class="table" style="width:100%"> <tr> <td width="10" style="padding:7px 0"> </td> <td style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px"> Indirizzo di consegna </p> <span data-html-only="1" style="color:#777"> {delivery_block_html} </span> </font> </td> <td width="10" style="padding:7px 0"> </td> </tr> </table> </td> <td width="20" class="space_address" style="padding:7px 0"> </td> <td class="box address" width="310" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0"> <table class="table" style="width:100%"> <tr> <td width="10" style="padding:7px 0"> </td> <td style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px"> Indirizzo di fatturazione </p> <span data-html-only="1" style="color:#777"> {invoice_block_html} </span> </font> </td> <td width="10" style="padding:7px 0"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="space_footer" style="padding:0!important"> </td> </tr> <tr> <td class="linkbelow" style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <span> Puoi visualizzare il tuo ordine e scaricare la eventuale fattura dalla sezione <a href="{history_url}" style="color:#337ff1">"Cronologia ordini"</a> nel tuo account utente cliccando su <a href="{my_account_url}" style="color:#337ff1">"Il mio account"</a> all'interno del sito. </span> </font> </td> </tr> <tr> <td class="linkbelow" style="padding:7px 0"> <font size="2" face="Open-sans, sans-serif" color="#555454"> <span> Se hai un account ospite, adesso puoi seguire il tuo ordine tramite la sezione <a href="{guest_tracking_url}?id_order={order_name}" style="color:#337ff1">"Tracking Ospite"</a> sul nostro sito. </span> </font> </td> </tr> <tr> <td class="space_footer" style="padding:0!important"> </td> </tr> <tr> <td class="footer" style="border-top:4px solid #333333;padding:7px 0"> <span>Veneri Srl - Zona Mercato sn - 85038 Senise - Pz - Tel: +39 0973 686743 - Mobile: +39 335 8377606 <a href="mailto:[email protected]" style="color:#337ff1">[email protected]</a></span> </td> </tr> </table> </td> <td class="space" style="width:20px;padding:7px 0"> </td> </tr> </table> </body> </html> Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 12, 2017 Share Posted January 12, 2017 Il file è corretto. Puoi effettuare una prova modificando il file inviato così da vedere se è quello ricevuto come conferma ordine? Link to comment Share on other sites More sharing options...
gerryfu Posted January 13, 2017 Author Share Posted January 13, 2017 prova fatta, il file è quello Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 13, 2017 Share Posted January 13, 2017 (edited) Rilevata assenza dei file email order_conf_product_list.txt e order_conf_product_list.tpl Edited January 13, 2017 by developer prestashop (see edit history) Link to comment Share on other sites More sharing options...
gerryfu Posted January 13, 2017 Author Share Posted January 13, 2017 Problema risolto grazie per il tuo preziosissimo aiuto Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 13, 2017 Share Posted January 13, 2017 Link to comment Share on other sites More sharing options...
illore Posted February 4, 2017 Share Posted February 4, 2017 (edited) Ciao anche io ho lo stesso problema, non visualizzo nell email dell ordine di conferma i riferimenti del prodotto. Purtroppo non ho capito come hai risolto. Grazie Edited February 4, 2017 by illore (see edit history) Link to comment Share on other sites More sharing options...
Giuseppe C. Posted February 4, 2017 Share Posted February 4, 2017 Ciao, controlla, tramite FTP, se nella cartella mails/it sono presenti i fle: email order_conf_product_list.txt e order_conf_product_list.tpl Link to comment Share on other sites More sharing options...
illore Posted February 4, 2017 Share Posted February 4, 2017 Ciao no no ci sono. ci sono solo order_conf.htlm e order_conf.txr Link to comment Share on other sites More sharing options...
Giuseppe C. Posted February 4, 2017 Share Posted February 4, 2017 OK, allora il problema è quello. Vai sul sito download di Prestashop (link versioni precedenti) Scarica la tua versione attualmente utilizzata Copia il file mancanti nella cartella mails/it Link to comment Share on other sites More sharing options...
illore Posted February 4, 2017 Share Posted February 4, 2017 Fatto ma scaricando la mia versione 1.6.1.11 da quel link, all'interno della cartella mail c'è solo En e non la lingua it. Link to comment Share on other sites More sharing options...
Giuseppe C. Posted February 4, 2017 Share Posted February 4, 2017 Indicami per favore la versione Prestashop che utilizzi Link to comment Share on other sites More sharing options...
illore Posted February 4, 2017 Share Posted February 4, 2017 1.6.1.11 Link to comment Share on other sites More sharing options...
Giuseppe C. Posted February 5, 2017 Share Posted February 5, 2017 Ciao, copia i file order_conf_product_list.txt e order_conf_product_list.tpl presenti nella cartella en Link to comment Share on other sites More sharing options...
illore Posted February 5, 2017 Share Posted February 5, 2017 Fatto,grazie mille davvero. Ora vedo i riferimenti Link to comment Share on other sites More sharing options...
Giuseppe C. Posted February 5, 2017 Share Posted February 5, 2017 Link to comment Share on other sites More sharing options...
Andrea Giannini Posted October 30, 2017 Share Posted October 30, 2017 Ciao, ho un problema con la conferma d'ordine: Ho sostituito gli {order_name} con {id_order} in tutte le mail per far visualizzare al cliente solo l'id numerico al posto di quello alfabetico. Questo funziona perfettamente per tutte le mail tranne che per la conferma d'ordine... come posso risolvere? Buona giornata Andrea 1 Link to comment Share on other sites More sharing options...
fedesib Posted November 29, 2017 Share Posted November 29, 2017 Ciao Andrea, non so se nel frattempo hai risolto. Se no, prova a guardare nella classe PaymentModule la funzione validateOrder, ad un certo punto (circa riga 700 per PS 1.6.1.17) viene preparata l'email da mandare al cliente: noterai che tra i campi passati al template dell'email di conferma ordine c'è {order_name} ma non c'è {id_order}, devi aggiungerlo qui se vuoi che venga correttamente "passato" al template. Ti consiglio di fare un override della classe per non perdere la tua modifica con gli aggiornamenti di PS. Spero di averti aiutato, buona giornata, Federica 1 Link to comment Share on other sites More sharing options...
ba609 Posted May 29 Share Posted May 29 (edited) Salve, io nella mail che riceve il cliente vedo anche una parte di codice. Prestashop v 1.7.7.5 Es. prodotto personalizzato con nome e cognome vedo questo: Targhetta con nome <strong>Nome</strong>: Mio Nome<br /> <strong>Cognome</strong>: Mio Cognome<br /> ========================== codice order_conf_product_list.tpl ========================== <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong>{$product['name']}</strong> {if count($product['customization']) == 1} <br> {foreach $product['customization'] as $customization} {$customization['customization_text']} {/foreach} {/if} {hook h='displayProductPriceBlock' product=$product type="unit_price"} </font> Nella mail allert tutto ok, nei file order_conf_product_list.tpl ho provato a rimuovere <strong> e <br /> , ho pulito la Cache, ma il problema persiste. C'è un altro file da controllare? Grazie, buona serata ! Quote Edited May 29 by ba609 (see edit history) 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