M
M
maxyc webber2014-06-20 13:11:53
1C-Bitrix
maxyc webber, 2014-06-20 13:11:53

Bitrix. Dynamic Price List Programming + SmartFilter?

The client asked for a "download price list" button under SmartFilter. The difficulty is that the price list must be generated depending on the filters. I tried to figure out the year of the smartfilter, but did not understand how it works.
Any ideas how to implement this?
perhaps for 10 years of professional work as a programmer, I still did not understand the point of encoding keys for searching in crc32 (!!!)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Didenko, 2014-06-22
@Diden05

SmartFilter essentially just generates a filter for catalog components.*
In your case, most likely catalog.section.
You can throw two such components on the page, one for displaying goods, the second for generating a price list.

I
Ilya Petrovsky, 2014-06-23
@Mpa3b_ru21

if you don't need to save the pricelist in XLS, then it's not that hard:
display the catalog item list component.
customize the look.
connect the smart filter by specifying the filter array.
check filtering. if not AJAX, then it's easy.
include the second component of the catalog item list.
specify the same filter array to it as to the previous one - this way the components output the same data.
now, for example, in the template code of the second component, you generate output in the format and form you need: at least to a file, at least somewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question