Pregunta

¿Cómo puedo añadir un enlace de seguimiento de plantilla de correo?

Esto es lo que he intentado:

En System > Transactional Emails me abrió la plantilla para Shipment Email Template for Guest (GLOBAL). Pensé números de seguimiento se incluyen aquí:

{{block type='core/template' area='frontend' template='email/order/shipment/track.phtml'
  shipment=$shipment order=$order}}

Así que copió email/order/shipment/track.phtml en mi plantilla y añade un enlace de seguimiento pero no aparece en el correo electrónico:

<td align="center" valign="top" style="padding:3px 9px"><a href="http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=<?php echo $_item->getNumber() ?>"><?php echo $_item->getNumber() ?></a></td>
¿Fue útil?

Solución

The problem is that this is PHP code:

<td align="center" valign="top" style="padding:3px 9px">
<a href="http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=
<?php echo $_item->getNumber() ?>">
<?php echo $_item->getNumber() ?></a>
</td>

You can't execute PHP from inside of an email template - instead, look to a tutorial to implement:

http://forum.azmagento.com/how-to/how-do-i-add-tracking-link-to-shipment-transactional-email-63-nbsp--82195.html

Or an extension:

http://ecommerce.aheadworks.com/magento-extensions/mobile-order-tracking.html

This plugin has the following feature which sounds handy to insert into your transactional shipment email: "Ability to insert order tracking link via widget and CMS"

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top