I
I
Ivan Shmelev2019-02-28 12:00:05
1C-Bitrix
Ivan Shmelev, 2019-02-28 12:00:05

What does BX.debug mean in the console when adding an item to the cart?

The problem is this: when adding a product to the basket, it does not appear there, but if you add the product again (the same or another), it will be displayed in the basket.
Console throws:
ReferenceError: basketJSParams is not defined
at BasketPoolQuantity.updateQuantity

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
ZardoZAntony, 2021-03-10
@ZardoZAntony

In template.php After BX.Sale.BasketComponent.init({....});
must be added

var basketJSParams = <?=CUtil::PhpToJSObject($arParams)?>

A
Andrey Nikolaev, 2019-03-01
@gromdron

You have a script error.
Have you modified the templates? If not, contact technical support. Perhaps you didn't learn something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question