Уважаемеые, помогите решить задачу!
Цель: в корзине (а так же в письмах-уведомлениях о заказе как Администратору так и Пользователю), наравне с наименованием товара выводить либо
название группы, к которой принадлежит товар
значение одного из дополнительных свойств товара
К сожалению, никак не могу понять, как же их вывести. код XSL-шаблона ниже. Название товара ("shop_item/name"
выводится замечательно, а вот его свойство не отображается. Предпочтительнее мне конечно было бы вывести название группы самого нижнего уровня (к которой непосредственно и принадлежит товар)
<!-- Шаблон для товара в корзине -->
<xsl:template match="shop_cart">
<xsl:variable name="quantity" select="format-number(quantity, '#####0', 'my')" />
<tr>
<td>
<a href="{shop_item/url}">
<xsl:value-of disable-output-escaping="yes" select="property_value[tag_name='kratkoe-nazvanie-tovara']/value"/>
<xsl:text>[</xsl:text><xsl:value-of disable-output-escaping="yes" select="shop_item/property[@xml_name='kratkoe-nazvanie-tovara']/value"/><xsl:text>] </xsl:text><xsl:value-of disable-output-escaping="yes" select="shop_item/name"/>
</a>
<xsl:if test="(shop_item/@id = 219 or shop_item/@id = 228) and quantity > 1">
<!--(Кол-во: <input type="text" size="3" name="quantity_{shop_item/@id}" id="quantity_{shop_item/@id}" value="{$quantity}" disabled="disabled" style="text-align: center" />)-->
( <i class="fa fa-times" style="margin-right: 3px;"></i> <strong style="font-size: 18px;"><xsl:value-of disable-output-escaping="yes" select="$quantity"/></strong> )
</xsl:if>
<!--<xsl:if test="shop_item/@id != 219 and shop_item/@id != 228">-->
<input type="hidden" name="quantity_{shop_item/@id}" id="quantity_{shop_item/@id}" value="{$quantity}"/>
<!--</xsl:if>-->
</td>
<td align="center" id="price_cell">
<div id="item_price">
<xsl:choose>
<xsl:when test="shop_item/price = 0">
<p>бесплатно</p>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="shop_item/currency" disable-output-escaping="yes"/><xsl:text> </xsl:text>
<xsl:value-of select="format-number(shop_item/price * quantity, '### ##0', 'my')"/>
</xsl:otherwise>
</xsl:choose>
</div>
<div id="item_price_val" style="display: none"><xsl:value-of select="format-number(shop_item/price, '#####0', 'my')"/></div>
<div id="item_quantity_val" style="display: none"><xsl:value-of select="$quantity"/></div>
</td>
<td align="center">
<a href="?delete={shop_item/@id}" onclick="return confirm('Вы уверены, что хотите удалить?')" title="Удалить товар из корзины" alt="Удалить товар из корзины"><i class="fa fa-trash-o"></i> Удалить</a>
</td>
</tr>
</xsl:template>