Не выводит результат после работы фильтра

#
Не выводит результат после работы фильтра
Проблема в том что после указания всех параметров и нажатия кнопки подобрать у меня ни чего не выводит... Мой шаблон фильтра
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:hostcms="http://www.hostcms.ru/"
   exclude-result-prefixes="hostcms">
   <xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
   
   <xsl:decimal-format name="my" decimal-separator="," grouping-separator=" "/>
   <!-- ФильтрМагазина -->
   <xsl:template match="/">
      <xsl:apply-templates select="/shop"/>
   </xsl:template>
   
   <xsl:variable name="n" select="number(3)"/>
   
   <xsl:template match="/shop">
      
      <!-- Получаем ID родительской группы и записываем в переменную $group -->
      <xsl:variable name="group" select="group"/>
      
      
      <xsl:variable name="count">1</xsl:variable>
      
      
      <xsl:if test="count(shop_item) &gt; 0 or /shop/filter = 1">
         <div class="ll_block">
            
            <!-- дополнение пути для action, если выбрана метка -->
         <xsl:variable name="form_tag_url"><xsl:if test="count(tag) = 1">tag/<xsl:value-of select="tag/urlencode"/>/</xsl:if></xsl:variable>
            
            <form method="get" action="{/shop/url}filter/">
               <div class="shop_filter" id="shop_filter">
                  <h2>Фильтр</h2>
                  <!-- Фильтр по дополнительным свойствам товара: -->
                  <xsl:if test="count(shop_item_properties//property[filter != 0 and (type = 0 or type = 1 or type = 3 or type = 7)])">
                     <span class="table_row"></span>
                     <xsl:apply-templates select="shop_item_properties//property[filter != 0 and (type = 0 or type = 1 or type = 3 or type = 7)]" mode="propertyList"/>
                  </xsl:if>   <br/>
                  
                  
                  <p>
                     <b>Цена :</b> <br/><br/>
                     От <input name="price_from" type="text" id="price_from"/> руб.<br/><br/>
                     До <input name="price_to" type="text" id="price_to"/> руб.
                  </p>
                  
                  <div id="slider-range"></div>
                  
                  
                  <br/>
                  
                  <p class="button">
                     <a href="#" onclick="submit()">Подобрать</a>
                     
                  </p>
               </div>
            </form>
         </div>
      </xsl:if>
   </xsl:template>
   <!-- Шаблон для товара -->
   <xsl:template match="shop_item">
      <div class="shop_item">
         <div class="shop_table_item">
            <div class="image_row">
               <div class="image_cell">
                  <a href="{url}">
                     <xsl:choose>
                        <xsl:when test="image_small != ''">
                           <img src="{dir}{image_small}" alt="{name}" title="{name}"/>
                        </xsl:when>
                        <xsl:otherwise>
                           <img src="/images/no-image.png" alt="{name}" title="{name}"/>
                        </xsl:otherwise>
                     </xsl:choose>
                  </a>
               </div>
            </div>
            <div class="description_row">
               <xsl:if test="shop_producer/node()">
               <div class="shop_property">Производитель: <span><xsl:value-of disable-output-escaping="yes" select="shop_producer/name"/></span></div>
               </xsl:if>
               
               <div class="description_sell">
                  <p>
                     <a href="{url}" title="{name}" hostcms:id="{@id}" hostcms:field="name" hostcms:entity="shop_item">
                        <xsl:value-of disable-output-escaping="yes" select="name"/>
                     </a>
                  </p>
                  <div class="price">
                  <xsl:value-of select="format-number(price, '### ##0,00', 'my')"/><xsl:text> </xsl:text><xsl:value-of select="currency"/><xsl:text> / </xsl:text> <xsl:value-of select="shop_measure/name" />
                     <!-- Ссылку на добавление в корзины выводим, если:
                     type = 0 - простой тип товара
                     type = 1 - электронный товар, при этом остаток на складе больше 0 или -1,
                     что означает неограниченное количество -->
                     <xsl:if test="type = 0 or (type = 1 and (digitals > 0 or digitals = -1))">
                        <a href="{/shop/url}cart/?add={@id}" onclick="return $.addIntoCart('{/shop/url}cart/', {@id}, 1)">
                           <img src="/images/add_to_cart.gif" alt="Добавить в корзину" title="Добавить в корзину" />
                        </a>
                     </xsl:if>
                     
                     <!-- Сравнение товаров -->
                     <xsl:variable name="shop_item_id" select="@id" />
                     <div class="compare" onclick="return $.addCompare('{/shop/url}', {@id}, this)">
                        <xsl:if test="/shop/comparing/shop_item[@id = $shop_item_id]/node()">
                           <xsl:attribute name="class">compare current</xsl:attribute>
                        </xsl:if>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
      
      <xsl:if test="position() mod 3 = 0 and position() != last()">
         <span class="table_row"></span>
      </xsl:if>
   </xsl:template>
   
   <!-- Шаблон для фильтра по дополнительным свойствам -->
   <xsl:template match="property" mode="propertyList">
      <xsl:variable name="nodename">property_<xsl:value-of select="@id"/></xsl:variable>
      <xsl:variable name="nodename_from">property_<xsl:value-of select="@id"/>_from</xsl:variable>
      <xsl:variable name="nodename_to">property_<xsl:value-of select="@id"/>_to</xsl:variable>
      
      <div class="filterField">
      <a href="#" class="show_selection"><xsl:value-of disable-output-escaping="yes" select="name"/><xsl:text> </xsl:text></a>
         <xsl:choose>
            <!-- Отображаем поле ввода -->
            <xsl:when test="filter = 1">
               <br/>
               <input type="text" name="property_{@id}">
                  <xsl:if test="/shop/*[name()=$nodename] != ''">
                     <xsl:attribute name="value"><xsl:value-of select="/shop/*[name()=$nodename]"/></xsl:attribute>
                  </xsl:if>
               </input>
            </xsl:when>
            <!-- Отображаем список -->
            <xsl:when test="filter = 2">
               <select name="property_{@id}">
                  <option value="0">все</option>
                  <xsl:apply-templates select="list/list_item"/>
               </select>
            </xsl:when>
            <!-- Отображаем переключатели -->
            <xsl:when test="filter = 3">
               <br/>
               <div class="to_select">
                  <input type="radio" name="property_{@id}" value="0" id="id_prop_radio_{@id}_0"></input>
                  <!--<label for="id_prop_radio_{@id}_0">Любой вариант</label>-->
                  <xsl:apply-templates select="list/list_item"/>
            </div><br></br>
            </xsl:when>
            <!-- Отображаем флажки -->
            <xsl:when test="filter = 4">
               <div class="to_select">
                  <xsl:apply-templates select="list/list_item"/>
            </div><br></br>
            </xsl:when>
            <!-- Отображаем флажок -->
            <xsl:when test="filter = 5">
               <br/>
               <input type="checkbox" name="property_{@id}" id="property_{@id}" style="padding-top:4px">
                  <xsl:if test="/shop/*[name()=$nodename] != ''">
                     <xsl:attribute name="checked"><xsl:value-of select="/shop/*[name()=$nodename]"/></xsl:attribute>
                  </xsl:if>
               </input>
               <label for="property_{@id}">Да</label>
            </xsl:when>
            <!-- Отображение полей "от и до" -->
            <xsl:when test="filter = 6">
               <br/>
               от: <input type="text" name="property_{@id}_from" size="2" value="{/shop/*[name()=$nodename_from]}"/> до: <input type="text" name="property_{@id}_to" size="2" value="{/shop/*[name()=$nodename_to]}"/>
            </xsl:when>
            <!-- Отображаем список с множественным выбором-->
            <xsl:when test="filter = 7">
               <br/>
               <select name="property_{@id}[]" multiple="multiple">
                  <xsl:apply-templates select="list/list_item"/>
               </select>
            </xsl:when>
         </xsl:choose>
   </div><br></br>
   </xsl:template>
   
   <xsl:template match="list/list_item">
      <div class="function nochecked">
         <xsl:if test="../../filter = 2">
            <!-- Отображаем список -->
            <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
            <option value="{@id}">
            <xsl:if test="/shop/*[name()=$nodename] = @id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
               <xsl:value-of disable-output-escaping="yes" select="value"/>
            </option>
         </xsl:if>
         <xsl:if test="../../filter = 3">
            <!-- Отображаем переключатели -->
            <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
            
            <input type="radio" name="property_{../../@id}" value="{@id}" id="id_property_{../../@id}_{@id}">
               <xsl:if test="/shop/*[name()=$nodename] = @id">
                  <xsl:attribute name="checked">checked</xsl:attribute>
               </xsl:if>
               <label for="id_property_{../../@id}_{@id}">
                  <xsl:value-of disable-output-escaping="yes" select="value"/>
               </label>
            </input>
         </xsl:if>
         <xsl:if test="../../filter = 4">
            <!-- Отображаем флажки -->
            <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
            <xsl:if test="/shop/*[name()=$nodename] = @id">
               <xsl:attribute name="class">function checked</xsl:attribute>
            </xsl:if>
            <input type="checkbox" value="{@id}" name="property_{../../@id}[]" id="property_{../../@id}_{@id}">
               <xsl:if test="/shop/*[name()=$nodename] = @id">
                  <xsl:attribute name="checked">checked</xsl:attribute>
               </xsl:if>
               <label for="property_{../../@id}_{@id}">
                  <xsl:value-of disable-output-escaping="yes" select="value"/>
               </label>
            </input>
         </xsl:if>
         <xsl:if test="../../filter = 7">
            <!-- Отображаем список -->
            <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
            <option value="{@id}">
               <xsl:if test="/shop/*[name()=$nodename] = @id">
                  <xsl:attribute name="selected">
                  </xsl:attribute>
               </xsl:if>
               <xsl:value-of disable-output-escaping="yes" select="value"/>
            </option>
         </xsl:if>
      </div>
   </xsl:template>
   
</xsl:stylesheet>
Модератор
#
Re: Не выводит результат после работы фильтра
Значит выводить нечего
#
Re: Не выводит результат после работы фильтра
HostCMS,
к глубочайшему сожалению это не так можно даже пронаблюдать вот тут http://baza-nn.com/shop/filter/?price_from=100&price_to=199999 в шаблоне что-то не так ..... я помню что удалил какую-то часть позднее поняв что зря
Модератор
#
Re: Не выводит результат после работы фильтра
aidalexeyaid,
в системе вообще нет узла filter!
#
Re: Re: Не выводит результат после работы фильтра
HostCMS,
Но раньше же выводило все...
Модератор
#
Re: Не выводит результат после работы фильтра
aidalexeyaid,
не могу сказать что там у Вас выводилось, проверьте код страницы. Если версия коммерческая, попробуйте обратиться в нашу поддержку.
#
Re: Re: Не выводит результат после работы фильтра
HostCMS,
Подождите а что мне конкретно сделать что бы выводился результат ?
Модератор
#
Re: Не выводит результат после работы фильтра
aidalexeyaid,
я Ваш код в глаза не видел, как можно что-либо советовать?!
#
Re: Не выводит результат после работы фильтра
HostCMS,
Успокойтесь ) Что вам нужно предоставить ? )
Модератор
#
Re: Не выводит результат после работы фильтра
HostCMS писал(а):
Если версия коммерческая, попробуйте обратиться в нашу поддержку.
Авторизация