46
Шаблоны TPL / Re:Опции товара
« : 26 Июля 2014, 14:29:05 »
Теперь понял)
В этом разделе можно просмотреть все сообщения, сделанные этим пользователем.
public function getItemPrice() {
$price = parent::getItemPrice();
$options = $this->getOptions();
foreach($options as $optionInfo) {
$optionPrice = getArrayKey($optionInfo, 'price');
if($optionPrice) {
$price = 0;
$price += (float) $optionPrice;
}
}
return $price;
}
<form id="add_basket_{page/@id}" class="options" method="get" action="{$lang-prefix}/emarket/basket/put/element/{page/@id}/">
<form id="add_basket_{page/@id}" class="options" method="get" action="{$lang-prefix}/emarket/basket_custom/put/element/{page/@id}/?amount=item_amount">
<input type="text" value="1" maxlength="3" id="item_amount"/>
<xsl:apply-templates select="document('udata://photoalbum/albums/',$pageId)/udata" />
<xsl:template match="/result[@method = 'fast_purchasing_xslt']">
<xsl:apply-templates select="document('udata://emarket/fast_purchasing_xslt')" mode="onstep"/>
</xsl:template>
<xsl:template match="udata[@module='emarket' and @method = 'fast_purchasing_xslt']" mode="onstep">
<xsl:value-of select="concat(' — ', .//property[@name = 'proc']/value, '%')" />
<xsl:apply-templates select="document('udata://content/getRecentPages')"/>
<xsl:apply-templates select="document('udata://content/getRecentPages/?limit=5')"/>
abstract class __emarket_custom {
public function onStatusChangedCustom (iUmiEventPoint $e) {
if($event->getMode() == "after" && $event->getParam("old-status-id") != $event->getParam("new-status-id")) {
$order = $event->getRef("order");
$api = new Api(array('id' => '123', 'key' => '1A2B3C4F', 'from'=> 'INFO'));
$amount = $api->getBalance();
if ($amount > 0) {
$newStatusId = $e->getParam('new-status-id');
$status = order::getCodeByStatus($newStatusId);
if ( $status == 'waiting' ) {
$api->send('89131234567','Ваш заказ №36548.', 'utf-8');
}
}
}
};
header("Content-type: text/html; charset=utf-8");
include "standalone.php"; - а путь он найдет?
$permissions = permissionsCollection::getInstance();
$currentUserId = $permissions->getUserId();
$userObject->getValue("tp_phone");
$api->send($userObject,'Ваш заказ №36548.', 'utf-8');
$api->send('Телефон','Ваш заказ №36.', 'utf-8');