M
M
Matvey Tomilov2018-09-28 12:48:45
MODX
Matvey Tomilov, 2018-09-28 12:48:45

How to filter by TV in modx?

How to make a TV filter?
Output of resources and fields for sorting:

<div class="b-goods-catalog__items">
          <div class="b-goods-catalog__item">
            <div style="width: 200px;" class="b-goods-catalog__prices">
              <div class="b-goods-catalog__prices-topic">Стоимость, <i class="fa fa-rub" aria-hidden="true"></i></div>
              <div class="b-goods-catalog__prices-range">
                <div class="b-goods-catalog__range-item">
                  <label>от</label>
                  <input type="text">
                </div>
                <div class="b-goods-catalog__range-item">
                  <label>до</label>
                  <input type="text">
                </div>
              </div>
            </div>
          </div>
          <div class="b-goods-catalog__item">
            <section class="b-catalog-goods">
              <div class="b-catalog-goods__sort">
                <div class="b-catalog-goods__sort-topic">Сортировка:</div>
                
                <div class="b-catalog-goods__sorty-by"></div>
                <div class="b-catalog-goods__sorty-by"></div>
              </div>
              <div class="b-catalog-goods__list">
             
              </div>
            </section>
          </div>
        </div>

How to make it so that when entering numerical data in the fields from or to, the output of resources by TV price is filtered? (removed resources that did not fit the range)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ant1vit, 2018-09-28
@etozhematvekat

&tvFilters=`{"price:>=,<=:AND":[200,500]}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question