TPL
/templates/{template_name}/tpls/emarket/mail/default.tpl или /tpls/emarket/mail/default.tpl
<?php
$FORMS = Array();
$FORMS['status_notification'] = <<<END
Your order #% order_number%% status%
<br/>
View your order history, you can in your <a href="http://%domain%/emarket/personal/">personal account</a>.
END;
$FORMS['status_notification_receipt'] = <<<END
Your order #% order_number%% status%
<br/>
View your order history, you can in your <a href="http://%domain%/emarket/personal/">personal account</a>.
<br/>
A receipt for payment, you can get by clicking on <a href="http://%domain%/emarket/receipt/%order_id%/%receipt_signature%/">this link</a>.
END;
$FORMS['neworder_notification'] = <<<END
Entered a new order #% order_number% (<a href="http://%domain%/admin/emarket/order_edit/%order_id%/">View</a>)
<br/>
Method of payment:% payment_type% <br/>
Payment status:% payment_status% <br/>
Amount of payment:% price% <br/>
END;
XSLT
/templates/{template_name}/xslt/mail/emarket/default.xsl или /xsltTpls/mail/emarket/default.xsl
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet SYSTEM "ulang://i18n/constants.dtd:file">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="utf-8" method="html" indent="yes" />
<xsl:template match="status_notification">
<xsl:text>Ваш заказ #</xsl:text>
<xsl:value-of select="order_number" />
<xsl:text> </xsl:text>
<xsl:value-of select="status" />
<br/><br/>
<xsl:text>Посмотреть историю заказов вы можете в своем </xsl:text>
<a href="http://{domain}/emarket/personal/">
<xsl:text>личном кабинете</xsl:text>
</a>.
</xsl:template>
<xsl:template match="status_notification_receipt">
<xsl:text>Ваш заказ #</xsl:text>
<xsl:value-of select="order_number" />
<xsl:text> </xsl:text>
<xsl:value-of select="status" />
<br/><br/>
<xsl:text>Посмотреть историю заказов вы можете в своем </xsl:text>
<a href="http://{domain}/emarket/personal/">
<xsl:text>личном кабинете</xsl:text>
</a>.
<br/><br/>
<xsl:text>Квитанцию на оплату вы можете получить, перейдя по </xsl:text>
<a href="http://{domain}/emarket/receipt/{order_id}/{receipt_signature}/">
<xsl:text>этой ссылке</xsl:text>
</a>.
</xsl:template>
<xsl:template match="neworder_notification">
<xsl:text>Поступил новый заказ #</xsl:text>
<xsl:value-of select="order_number" />
<xsl:text> (</xsl:text>
<a href="http://{domain}/admin/emarket/order_edit/{order_id}/">
<xsl:text>Просмотр</xsl:text>
</a>
<xsl:text>)</xsl:text><br/><br/>
<xsl:text>Способ оплаты: </xsl:text>
<xsl:value-of select="payment_type" /><br/>
<xsl:text>Статус оплаты: </xsl:text>
<xsl:value-of select="payment_status" /><br/>
<xsl:text>Сумма оплаты: </xsl:text>
<xsl:value-of select="price" /><br/>
</xsl:template>
</xsl:stylesheet>
Добрый день, изучал урок - Уведомление менеджеру о заказе, со всем необходимыми данными (emarket) XSLT
http://wiki.umisoft.ru/%D0%A3%D0%B2%D0%B5%D0%B4%D0%BE%D0%BC%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D0%BC%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80%D1%83_%D0%BE_%D0%B7%D0%B0%D0%BA%D0%B0%D0%B7%D0%B5,_%D1%81%D0%BE_%D0%B2%D1%81%D0%B5%D0%BC_%D0%BD%D0%B5%D0%BE%D0%B1%D1%85%D0%BE%D0%B4%D0%B8%D0%BC%D1%8B%D0%BC%D0%B8_%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%BC%D0%B8_%28emarket%29_XSLT
Прописал разные данные и все присылает.
<xsl:value-of select="document(concat('uobject://',$delivery1))//property[@name='city']/value" />
Но если в адресе доставки вбить новый адрес, то он пришлет старый адрес, который вбили в первый раз, как выбрать текущий?
Спасибо.