This is what our post today is about

Talk big database, solutions, and innovations for businesses.
Post Reply
mdmarouf988
Posts: 53
Joined: Tue Jan 07, 2025 4:31 am

This is what our post today is about

Post by mdmarouf988 »

hope this post will be helpful to my colleagues whose work is related to code and who have at least a little idea of ​​the basic capabilities of programming for Bitrix.


Optimizing filter pages
There is no such possibility to optimize filtering pages in Bitrix, but there are standard possibilities to optimize a separate element of the infoblock and give it the description, title, keywords and h1 tags we need. The task is to achieve the optimization we need with minimal coding.

This is what the filter and filter page address look like when they first come to me
This is what the filter and filter page address look like when they first come to me.
The principle of this method is that we have two separate infoblocks. The first is a regular product catalog with its categories and a set of product parameters for filtering. The second, we will call it "SEO filters ", is an infoblock, the elements of which will be the filtering options we need with their optimization. This infoblock needs to create a property for storing the ID of the category in which the filtering occurs, and the symbolic code field will be equal to the URL of the filter itself. Since the URL of the filter in different categories can be the same, you need to uncheck " If the code is specified, then check for uniqueness " in the infoblock settings on the "Fields" tab.
As I hope it is clear, the connection between filters and infoblock elements will be the URL of the filter page and the category ID. For example, we have a parameter for the year of product production and a filter URL, with the CNC enabled it looks something like this: /notebooks/acer/ filter/year-is- 2012 /apply/. We create an infoblock element "SEO filters ", for which we will specify the symbolic code year-is-2002 and the value of the category id property corresponding to the value of the "deepest" subcategory - in our case " acer ".

Next, in the category template of our catalog we can check whether we have an element "SEO- filters " with the specified filtering conditions. The variable $_REQUEST["SMART_FILTER_PATH"] stores "year-is- 2012 ", and the variable $arResult["VARIABLES"]["SECTION_ID"] stores the category id . And using the CIBlockElement::GetList() method with the specified filter we get our optimized element and change the optimization output from the category to the optimization output from our element.

In practice, there may be problems with the output of some tags, for example, if you have h1 caching before afghanistan whatsapp resource processing data from the "SEO filter" element. In this case, you can use the deferred output of information in Bitrix using the functions $APPLICATION->ShowViewContent(); A more detailed description of working with deferred functions is here .

We invite you to a free webinar from our partner Boxberry. Topic: how to increase online store profits with delivery.


Analysts at the Boxberry delivery service have calculated that by connecting a new pick-up point, the online store attracts about 69.5% of customers who have not previously placed orders in the studied online store. I wonder how it works?
Post Reply