Search the Community
Showing results for tags 'order_conf.html'.
-
hello everyone, I'm trying to modify PaymentModule.php to have in the order confirmation email to the customer the link to the product (a href ......) throung the product name in the table. I modified PaymentModule.php (studying on the forum) from line 423 as follows (//link evidence the mods) // Construct order detail table for the email $products_list = ''; $virtual_product = true; $product_var_tpl_list = []; foreach ($order->product_list as $product) { $price = Product::getPriceStatic((int) $product['id_product'], false, ($product['id_product_attribute'] ? (int) $product['id_product_attribute'] : null), 6, null, false, true, $product['cart_quantity'], false, (int) $order->id_customer, (int) $order->id_cart, (int) $order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $specific_price, true, true, null, true, $product['id_customization']); $price_wt = Product::getPriceStatic((int) $product['id_product'], true, ($product['id_product_attribute'] ? (int) $product['id_product_attribute'] : null), 2, null, false, true, $product['cart_quantity'], false, (int) $order->id_customer, (int) $order->id_cart, (int) $order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $specific_price, true, true, null, true, $product['id_customization']); $product_price = Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, Context::getContext()->getComputingPrecision()) : $price_wt; //link $link = $this->context->link->getProductLink($product['id_product']); // END LINK $product_var_tpl = [ 'id_product' => $product['id_product'], 'id_product_attribute' => $product['id_product_attribute'], 'reference' => $product['reference'], //name ORIGINAL 'name' => $product['name'] . (isset($product['attributes']) ? ' - ' . $product['attributes'] : ''), //link 'name' => '<a href='.$link.'>'.$product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : '').'</a>', //end link 'price' => Tools::getContextLocale($this->context)->formatPrice($product_price * $product['quantity'], $this->context->currency->iso_code), 'quantity' => $product['quantity'], 'customization' => [], ]; but the result is the following: in the confirmation email the html code is shown as text and does not work as a href tag. and the html is <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong><a href=https://www.sensiline-shop.it/online/calzini/8-calzini-leggeri-ed50011.html>CALZINI LEGGERI - ED50011 - Colore: BIANCO - Taglia: S-35/38</a></strong> </font> Can someone help me? Thanks in advance
-
hello everyone, I'm trying to modify PaymentModule.php to have in the order confirmation email to the customer the link to the product (a href ......) throung the product name in the table. I modified PaymentModule.php (studying on the forum) from line 423 as follows (//link evidence the mods) // Construct order detail table for the email $products_list = ''; $virtual_product = true; $product_var_tpl_list = []; foreach ($order->product_list as $product) { $price = Product::getPriceStatic((int) $product['id_product'], false, ($product['id_product_attribute'] ? (int) $product['id_product_attribute'] : null), 6, null, false, true, $product['cart_quantity'], false, (int) $order->id_customer, (int) $order->id_cart, (int) $order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $specific_price, true, true, null, true, $product['id_customization']); $price_wt = Product::getPriceStatic((int) $product['id_product'], true, ($product['id_product_attribute'] ? (int) $product['id_product_attribute'] : null), 2, null, false, true, $product['cart_quantity'], false, (int) $order->id_customer, (int) $order->id_cart, (int) $order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $specific_price, true, true, null, true, $product['id_customization']); $product_price = Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, Context::getContext()->getComputingPrecision()) : $price_wt; //link $link = $this->context->link->getProductLink($product['id_product']); // END LINK $product_var_tpl = [ 'id_product' => $product['id_product'], 'id_product_attribute' => $product['id_product_attribute'], 'reference' => $product['reference'], //name ORIGINAL 'name' => $product['name'] . (isset($product['attributes']) ? ' - ' . $product['attributes'] : ''), //link 'name' => '<a href='.$link.'>'.$product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : '').'</a>', //end link 'price' => Tools::getContextLocale($this->context)->formatPrice($product_price * $product['quantity'], $this->context->currency->iso_code), 'quantity' => $product['quantity'], 'customization' => [], ]; but the result is the following: in the confirmation email the html code is shown as text and does not work as a href tag. and the html is <font size="2" face="Open-sans, sans-serif" color="#555454"> <strong><a href=https://www.sensiline-shop.it/online/calzini/8-calzini-leggeri-ed50011.html>CALZINI LEGGERI - ED50011 - Colore: BIANCO - Taglia: S-35/38</a></strong> </font> Can someone help me? Thanks in advance
-
Bonjour tout le monde, J'ai un petit souci avec les mails en html qui sont envoyés aux clients. Il s'agit de l'order_conf.html. Le mail est bien envoyé au client mais lorsqu'il l'affiche, la/les lignes produits sont décalées sur la droite et les blocs livraison, adresse de livraison et adresse de facturations sont sur la gauche. J'ai déjà essayé de reprendre un template que j'ai trouvé sur le web mais sans succès malheureusement. Avez-vous une idée svp? Merci Prestashop version 1.7.8.8 -> langue utilisée uniquement le français.
-
Hi I am using PS 1.6.0.14 and wish to change the order conf. email to customers. I need to add product ID and remove reference. I did look in the order_conf.html, and changed the label, but I don't know where to change what is displayed for {products}. So I hope someone can help.
- 9 replies
-
- product id
- order_conf.html
-
(and 1 more)
Tagged with:
-
Hi, I was wondering if it is possible to add the supplier details like (phone, name, address) into the order_conf.html template that goes out to the customer. for example: {supplier_name} = 'Supplier' {supplier_address} = 'Prestashop lane 231' etc... In classes/PaymentModule.php i tried to add the following code in the $data array (after line 560) $address_id=Address::getAddressIdBySupplierId($this->product->id_supplier); $data = array ( {supplier} => '$supplier->name', It is a wish of one of our customers, but we can't find a module, and i'm pretty new with prestashop, so any suggestions would be helpful Thanx!
- 1 reply
-
- Supplier
- email tags
-
(and 1 more)
Tagged with:
-
Dobre rano, Aktualne sa snazim riesti email sablonu: order_conf.html! Prikladam Vam html: <!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 http-equiv="Content-Language" content="sk"> <title>Message from {shop_name}</title> <style type="text/css"> a { color: #000000; } a:visited { color: #000000; } a:active { color: #000000; } .style1 { color: #FF0000; } .style3 { text-transform: uppercase; font-weight: bold; font-size: 12px; color: #FFFFFF; background-color: #000000; } .style4 { background-color: #000000; } .style5 { color: #FFFFFF; } .style6 { background-color: #FFFFFF; } .style7 { text-transform: uppercase; background-color: #000000; } .style8 { text-align: center; } .style9 { font-weight: bold; } </style> </head> <body> <table style="font-family: Verdana,sans-serif; border: 1px solid #ccc; border-radius: 3px; box-shadow: 0 0 5px #888; font-size: 11px; color: #374953; width: 550px;" align="center"> <tbody> <tr> <td align="left" style="width: 700px"> <a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="width: 700px">Dobrý deň <strong class="style1">{firstname} {lastname}</strong>,<br /><br /> Ďakujeme za Vašu objednávku v obchode <strong>{shop_name}</strong>!</td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="padding: 0.5em 1em; width: 700px;" class="style3"> Detail vašej objednávky</td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="width: 700px"> Objednávka: <strong><span class="style1">{order_name}</span> <br> </strong> Dátum objednávky: <strong>{date}</strong> <br >Platba: <strong>{payment}</strong> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left"> <table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;"> <!-- Title --> <tr style="background-color:#B9BABE; text-align:center;" class="style5"> <th style="width:200px; padding: 0.6em 0;" class="style7"> kód produktu</th> <th style="width:200px; padding: 0.6em 0;" class="style7"> názov produktu</th> <th style="width:100px; padding: 0.6em 0;" class="style7"> cena/ks</th> <th style="width:100px; padding: 0.6em 0;" class="style7"> počet</th> <th style="width:100px; padding: 0.6em 0;" class="style7"> cena spolu</th> </tr> <!-- Products --> {products} {discounts} <!-- Footer: prices --> <tr style="text-align:right;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;">Produkty spolu:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_products}</td> </tr> <tr style="text-align:right;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;">Celková zľava:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_discounts}</td> </tr> <tr style="text-align:right;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;">Preprava:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_shipping}</td> </tr> <tr style="text-align:right; font-weight:bold;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;" class="style9"> Výsledná suma:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_paid}</td> </tr> </table> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="padding: 0.5em 1em; width: 700px;" class="style3"> Preprava</td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="width: 700px"> Prepravca: <strong>{carrier}</strong> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td> <table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;"> <tr style="background-color:#B9BABE; text-transform:uppercase;" class="style5"> <th style="text-align:left; padding: 0.3em 1em; width: 350px;" class="style4"> Dodacia adresa</th> <th style="text-align:left; padding: 0.3em 1em; width: 350px;" class="style4"> fakturačná adresa</th> </tr> <tr> <td style="padding:0.5em 0 0.5em 0.5em; " class="style6"> {delivery_block_html} </td> <td style="padding:0.5em 0 0.5em 0.5em; "> {invoice_block_html} </td> </tr> </table> </td> </tr> <tr><td style="width: 700px"> </td></tr> </table> </body> </html> Problem je v tom, ze v editore mail sablona vyzera upne inac ako v doslej poste zakaznika. Mail sablony nema instalovane v adresary sablony, iba v korenovom adresary. Dalej neviem, ako mam zarovnat vypis produktov, cien atd na stred v email potvrdeni...
-
Hi When a customer finishes the order, the "order confirmation" mail is sent. As you can see on the attached image, an extra table cell is created at the begining and i would like to remove it. But that can't be done within order_conf.html file! Which php file should i modify? Becuase i'm assuming this is stored in {products} variable. I'm using PS 1.5.4.1 Thank you and best regards, Housy
- 3 replies
-
- order_conf.html
-
(and 3 more)
Tagged with:
-
Hallo Experten, ich möchte einen weiteren Status mit eMail-Benachrichtiungin in den Bestellvorgang einfügen. Ich habe unter /mails/de die Dokumente auftragsb.html und auftragsb.txt neu erstellt und im Backend verknüpft. Den Inhalt habe ich 1:1 von order_conf rauskopiert und in die o.g Dokumente eingefügt, da ich das Gerüst und die Funktion genauso übernehmen möchte. Es zeigt mir jetzt leider beim Versand der Auftragsbestätigung nur die Variablen an. Keine Zahlen, Lieferadresse, Summierungen usw. Das einzige was stimmt ist der Name, Firma und Bruttogesamt. Wie kann ich das nun machen das die selben Funktionen 1:1 übernommen werden in das neu angelegt dokument. Danke + MfG
-
Bonjour. Je souhaiterai redéfinir les valeurs de la balise {products} présente dans l'email de commande (order_conf.html) mais je n'arrive pas à trouver le fichier dont elle dépend. Est-ce que quelqu'un peut m'éclairer ? Merci. Prestashop version 1.3
- 4 replies
-
- {products}
-
(and 1 more)
Tagged with: