P
P
Paul_Morte2020-04-30 04:47:09
1C-Bitrix
Paul_Morte, 2020-04-30 04:47:09

How to disable AJAX mode for section pages in the BITRIX online store?

The add to cart button works only when the "Enable AJAX mode" parameter in the bitrix.catalog component is checked. Without this checkbox, the button freezes.

At the same time, with this checkbox enabled, an incomprehensible nonsense happens with the category pages - if you click on a subcategory, the link in the browser does not change. When you click on a product, the same thing, in short - adjax draws all the content directly on the same page.

I need to somehow remove this ajax effect of loading content on category pages.
I've looked all over the internet and there's nothing like it. I tried to set the parameter "AJAX_MODE" => 'N' directly in the php of the category page - no way.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
PetrPo, 2020-04-30
@Paul_Morte

Parameter AJAX_OPTION_HISTORY = Y to change urls during transitions. AJAX_MODE as you want will not work. How would you explain it easier, your complex component here acts as a wrapper for simple components, and when you set AJAX_MODE = Y, everything inside the wrapper will be updated, and the fact that you set this parameter to a simple component equal to N will not give any effect

I
Ilya, 2020-04-30
@rpsv

Go to component template and in AJAX toggle addhistory.push(...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question