S
S
Sergey Karpin2021-02-22 13:14:42
1C-Bitrix
Sergey Karpin, 2021-02-22 13:14:42

Why does adding to cart bug the catalog?

Hello!

I ran into some kind of wild country, namely the catalog component and all the components related to it (catalog.section, catalog.element, etc.).

The site is generally on the "start" edition and yes, there is no "catalog" and "sale" module, which would allow us to use the standard functionality for working with the basket. In theory, nothing prevents writing a simple basket on sessions / cookies. Looked as there is an adding in a basket on edition "small business".

Everything is quite simple, an Ajax request is sent from the current page to itself with the get parameters "/?action=ADD2BASKET&id=1" the component picks up the get request, etc. All clear.

In the process of writing a basket, I ran into an incomprehensible game. If you add "/?action=ADD2BASKET&id=1" get parameters in the directory, then the directory component will simply not work and will return an empty page without a directory. At first I thought that this was the case with me, and then I deployed a fresh demo with a furniture company, checked it, the same thing!

Here actually and a question who faced and how treated? Maybe the Bitrix pros will tell you how to treat this disgrace. For the lack of editorial "small business and above" should not affect non-get requests)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question