Jump to content
fraidyy

PrestaShop 1.5 -Špatný e-mail

Recommended Posts

Zdravím, chtěl bych se zeptat kde najdu šablony pro posílání e-mailu při objednávce zboží ? Jedna z části e-mailu : Potvrzení objednávky, se mi špatně zobrazuje a rád bych-pokud možno, zredukoval některé e-maily příjde mi zbytečné za 1 objednávku posílat 5 e-mailů, jestli víte kde to najít, budu za každou radu vděčný.

 

Předem díky

post-467615-0-07615100-1359388497_thumb.jpg

Share this post


Link to post
Share on other sites

Tak e-maily jsem našel, ale nenašel jsem způsob jak opravit tuto chybu, co jsem se díval tak mail má stejnou konfiguraci jako ostatní e-maily které chodí v pohodě, nevyzná se v tom někdo lépe prosím ?

<!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">
<title>Zpráva z obchodu {shop_name}</title>
</head>
<body>
<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;">
<tbody>
<tr>
<td align="left"><a title="{shop_name}" href="{shop_url}"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left">Dobrý den p. <strong style="color: #db3484;">{firstname} {lastname}</strong>.<br /><br />Děkujeme Vám za nákup v obchodě <strong>{shop_name}</strong>!</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Detaily objednávky</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left">Objednávka: <strong><span style="color: #db3484;">{order_name}</span> vytvořená {date}</strong> <br />Platba: <strong>{payment}</strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left">
<table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;">
<!-- Title -->
<tbody>
<tr style="background-color: #b9babe; text-align: center;">
<th style="width: 15%; padding: 0.6em 0;">Kód</th>
<th style="width: 30%; padding: 0.6em 0;">Produkt</th>
<th style="width: 20%; padding: 0.6em 0;">Jedn. cena</th>
<th style="width: 15%; padding: 0.6em 0;">Množství</th>
<th style="width: 20%; padding: 0.6em 0;">Cena celkem</th>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
{products}
{discounts}
</td>
</tr>
<tr>
<td>
<table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;">
<tbody>
<colgroup>
<col style="width: 15%; padding: 0.6em 0;" />
<col style="width: 30%; padding: 0.6em 0;" />
<col style="width: 20%; padding: 0.6em 0;" />
<col style="width: 15%; padding: 0.6em 0;" />
<col style="width: 20%; padding: 0.6em 0;" />
</colgroup>
<tr style="text-align: right;">
<td style="background-color: #b9babe; padding: 0.6em 0.4em;" colspan="4">Zboží</td>
<td style="background-color: #b9babe; padding: 0.6em 0.4em;">{total_products}</td>
</tr>
<tr style="text-align: right;">
<td style="background-color: #ebecee; padding: 0.6em 0.4em;" colspan="4">Slevy</td>
<td style="background-color: #ebecee; padding: 0.6em 0.4em;">{total_discounts}</td>
</tr>
<tr style="text-align: right;">
<td style="background-color: #ebecee; padding: 0.6em 0.4em;" colspan="4">Dárkové balení</td>
<td style="background-color: #ebecee; padding: 0.6em 0.4em;">{total_wrapping}</td>
</tr>
<tr style="text-align: right;">
<td style="background-color: #dde2e6; padding: 0.6em 0.4em;" colspan="4">Přeprava</td>
<td style="background-color: #dde2e6; padding: 0.6em 0.4em;">{total_shipping}</td>
</tr>
<tr style="text-align: right; font-weight: bold;">
<td style="background-color: #f1aecf; padding: 0.6em 0.4em;" colspan="4">Celkem k úhradě</td>
<td style="background-color: #f1aecf; padding: 0.6em 0.4em;">{total_paid}</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 11px; font-weight: bold; padding: 0.5em 1em;" align="left">Přeprava</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left">Dopravce: <strong>{carrier}</strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;">
<tbody>
<tr style="background-color: #b9babe; text-transform: uppercase;">
<th style="width: 50%; text-align: left; padding: 0.3em 1em;">Dodací adresa</th>
<th style="width: 50%; text-align: left; padding: 0.3em 1em;">Fakturační adresa</th>
</tr>
<tr>
<td style="padding: 0.5em 0 0.5em 0.5em; background-color: #ebecee;">{delivery_block_html}</td>
<td style="padding: 0.5em 0 0.5em 0.5em; background-color: #ebecee;">{invoice_block_html}</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left">Můžete zkontrolovat svou objednávku a stáhnout si fakturu ze stránky <a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{history_url}">"Historie objednávek"</a> Vašeho zákaznického účtu kliknutím na odkaz <a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{my_account_url}">"Můj účet"</a>.<br /><br /></td>
</tr>
<tr>
<td align="left">Pokud máte účet návštěvníka, můžete sledovat své objednávky prostřednictvím <a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{guest_tracking_url}">"Sledování pro návštěvníky"</a>.</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center">Obchod <a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> vytvořen v systému <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop™</a></td>
</tr>
</tbody>
</table>
</body>
</html>

Share this post


Link to post
Share on other sites

namiesto {products} aj {discounts} sa generuju <tr> riadky tabulky - napr pre 1 produkt:

<tr style="background-color:#EBECEE">
 <td style="padding: 0.6em 0.4em;width: 15%;"></td>
 <td style="padding: 0.6em 0.4em;width: 30%;"><strong>LED svítidlo 12W</strong></td>
 <td style="padding: 0.6em 0.4em; width: 20%;">519,00 Kč</td>
 <td style="padding: 0.6em 0.4em; width: 15%;">1</td>
 <td style="padding: 0.6em 0.4em; width: 20%;">519,00 Kč</td>
</tr>

a v kode potom vznika tabulkovy chaos <tr><td><tr>...

 

Skus nahradit tuto cast kodu

<tr>
<td align="left">
<table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;">
<!-- Title -->
<tbody>
<tr style="background-color: #b9babe; text-align: center;">
<th style="width: 15%; padding: 0.6em 0;">Kód</th>
<th style="width: 30%; padding: 0.6em 0;">Produkt</th>
<th style="width: 20%; padding: 0.6em 0;">Jedn. cena</th>
<th style="width: 15%; padding: 0.6em 0;">Množství</th>
<th style="width: 20%; padding: 0.6em 0;">Cena celkem</th>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
{products}
{discounts}
</td>
</tr>

 

tymto

<tr>
 <td align="left">
<table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;">
  <!-- Title -->
  <thead>
	<tr style="background-color: #b9babe; text-align: center;">
	  <th style="width: 15%; padding: 0.6em 0;">Kód</th>
	  <th style="width: 30%; padding: 0.6em 0;">Produkt</th>
	  <th style="width: 20%; padding: 0.6em 0;">Jedn. cena</th>
	  <th style="width: 15%; padding: 0.6em 0;">Množství</th>
	  <th style="width: 20%; padding: 0.6em 0;">Cena celkem</th>
	</tr>
  </thead>
  <tbody>
	{products}
	{discounts}
  </tbody>
</table>
 </td>
</tr>

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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