Возможно ли отображать доп. свойства товара в списке товаров?

#
Re: Возможно ли отображать доп. свойства товара в списке товаров?
   
   <!-- Шаблон для товара -->
   <xsl:template match="item">
      

   <div class="group_gallery">
      <div class="t"></div>
      <div class="r"></div>
      <div class="b"></div>
      <div class="l"></div>
      <div class="project-item" style="margin:10px;">
         <div class="catItemHeader">
            <h3 class="catItemTitle">
               <a href="{/shop/path}{fullpath}{path}/" class="cat_title">
                  <xsl:value-of disable-output-escaping="yes" select="name"/>
               </a>
            </h3>
         </div>
         <div class="clear"></div>
         <div class="imgLiquidFill imgLiquid" style="width:200px; height:150px; border: 1px solid #dfc28b; margin:10px 0 20px 0;">
            <a href="{/shop/path}{fullpath}{path}/">
               <img src="{small_image}" class="image" />
            </a>
         </div>
         <div class="clear"></div>
            <xsl:apply-templates select="/shop/properties_items_dir">
               <xsl:with-param name="item_id" select="@id"/>
            </xsl:apply-templates>
      </div>
   </div>
   </xsl:template>

   <!-- Вывод раздела для свойств товара -->
   <xsl:template match="properties_items_dir">
      <xsl:param name="item_id"/>
         
      <xsl:variable name="dir_id" select="@id"/>
         
      <xsl:if test="count(/shop/item/property[@dir_id = $dir_id])">
         <!-- Название группы свойств -->
         <h4><xsl:value-of select="shop_properties_items_dir_name"/></h4>
         <table class="tt2">
            <xsl:apply-templates select="/shop/item[@id = $item_id]/property[@dir_id = $dir_id]"/>
         </table>
      </xsl:if>
         
      <xsl:if test="count(properties_items_dir) > 0">

            <xsl:apply-templates select="/shop/properties_items_dir">
               <xsl:with-param name="item_id" select="@id"/>
            </xsl:apply-templates>

      </xsl:if>
   </xsl:template>

   <!-- Вывод строки со значением свойства -->
   <xsl:template match="property">
      <xsl:if test="value != '' or (type = 1 and file_path != '')">
         <tr>
            <td><xsl:value-of select="name"/></td>
            <td><xsl:value-of select="value"/></td>
         </tr>
      </xsl:if>
   </xsl:template>
Жизнь не преодоление сложностей, а поиск возможностей © DSergeev
Авторизация