K
K
kabashowlab2015-07-18 10:40:25
PHP
kabashowlab, 2015-07-18 10:40:25

Bitrix, remove pop-up window when clicking the button to buy a product?

Good day.
I searched everywhere already in Google and Yandex and on the Bitrix website.
You need to remove the popup window that appears when you click the buy button.
I use the output of goods by the catalog component.
Please tell me what needs to be removed. I would be very grateful in person.
I found a couple of solutions, but often they write there, you will find the js file and there delete the line responsible for displaying the popup window.
I found a couple of lines in the popup code, deleted them. And nothing happened. And there are a lot of .js files. I don't know exactly where to look or what the function itself looks like....

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Oleg Prilepa, 2015-07-18
@kabashowlab

Good day!
As far as I know, this functionality is not configured by the component settings.
The standard Bitrix complex catalog, depending on the settings, works like this: the button is called "Buy" and immediately goes to the basket, where this product will already be added; Or the button is called "Add to cart" and when clicked, a popup opens with the options "Continue shopping" or "Go to cart".
Often customers ask for an alternative case: when you click on the "Add to cart" button, the text changes to "Already in the cart", when you click again, you go to the cart. Accordingly, if there is a small basket in the site header, it should be updated ajax. And when the page is reopened (reloaded), this product should already have the "Already in the cart" label (done through a js script in the cart template in the header).
Our specialists can make such a revision in 1-2 hours.
If you need technical support for a site on Bitrix, we are always happy to help.
Contact [email protected]
Sincerely,
Oleg.

A
Alexey Ukolov, 2015-07-18
@alexey-m-ukolov

If you can't figure it out yourself, contact a professional.
Here, no one will do it for you for free.

R
Roman Nesteruk, 2015-07-18
@Romanssski

Look for a function something like basketresult, I don’t remember exactly, and inside it delete everything related to popup, this must be done both in the product card and in the catalog itself

A
Artem, 2018-07-23
@Tostic

Find this code in the required component and put N instead of Y and the pop-up window will turn off.

this.basketParams = {
    'ajax_basket': 'N'
  };

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question