Jump to content
  • 0

Problem z szablonem maila i jego zmiennymi (shipped.html)


i.kris77

Question

Witam,

Mam problem z szablonem maila, który jest wysyłany automatycznie do klienta po zmianie statusu zamówienia na "Wysłane" (shipped.html).

W mailu nie wyświetlają się poprawnie niektóre ze zmiennych. Dołączam grafikę z wyjaśnieniem.

 

 

Tak wygląda kod (shipped.html):

<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px; border-collapse: collapse;" border="0">
<tbody>
<tr>
<td colspan="2"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left">
<h2>Your order has been sent</h2>
</td>
</tr>
<tr>
<td colspan="2" align="left"><span style="color: #fc6719; font-weight: bold;">{firstname} {lastname}</span>, we would like to inform you that your order was forwarded to the transport company. You can find the number of you package below, so you can track it.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left">In section <a style="color: #374953; font-weight: bold; text-decoration: none;" href="{my_account_url}">My Account</a> <strong>/ <a style="color: #374953; font-weight: bold; text-decoration: none;" href="{guest_tracking_url}">My Orders</a> / <a style="color: #374953; font-weight: bold; text-decoration: none;" href="{history_url}">History Order</a> </strong>- you can check your order and display the invoice.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left"><hr /><strong>Order nr <span style="color: #fc6719;">{order_name}</span> from <span style="color: #fc6719;">{date}</span></strong><hr /></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left">Has been sent on <span style="font-weight: bold; font-size: 14px;">{shipping_date}</span><br /> Package number: <span style="font-weight: bold; font-size: 14px;">{shipping_number}</span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td style="font-size: 10px;" colspan="2" align="center"><hr /><a style="color: #fc6719; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> based on <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop™</a></td>
</tr>
</tbody>
</table><table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px; border-collapse: collapse;" border="0">
<tbody>
<tr>
<td colspan="2"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left">
<h2>Your order has been sent</h2>
</td>
</tr>
<tr>
<td colspan="2" align="left"><span style="color: #fc6719; font-weight: bold;">{firstname} {lastname}</span>, we would like to inform you that your order was forwarded to the transport company. You can find the number of you package below, so you can track it.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left">In section <a style="color: #374953; font-weight: bold; text-decoration: none;" href="{my_account_url}">My Account</a> <strong>/ <a style="color: #374953; font-weight: bold; text-decoration: none;" href="{guest_tracking_url}">My Orders</a> / <a style="color: #374953; font-weight: bold; text-decoration: none;" href="{history_url}">History Order</a> </strong>- you can check your order and display the invoice.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left"><hr /><strong>Order nr <span style="color: #fc6719;">{order_name}</span> from <span style="color: #fc6719;">{date}</span></strong><hr /></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="left">Has been sent on <span style="font-weight: bold; font-size: 14px;">{shipping_date}</span><br /> Package number: <span style="font-weight: bold; font-size: 14px;">{shipping_number}</span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td style="font-size: 10px;" colspan="2" align="center"><hr /><a style="color: #fc6719; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> based on <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop™</a></td>
</tr>
</tbody>
</table>

Zmienna {date} jest wyświetlana poprawnie w innych szablonach, tylko nie w tym. To samo dzieje się w polskiej wersji językowej.

post-846727-0-46359100-1428502927_thumb.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

W oryginalnych szablonach presty 1.5 i 1.6 nie ma tej zmiennej w tym szablonie "shipped", czyli nie jest przekazywana do tego szablonu maila.

Prawdopodobnie twórca tego szablonu maila nawrzucał różnych żmiennych wychodząc z założenia "a nuż się wyświetli" :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...