A
A
Andrey2017-08-02 12:51:01
PHP
Andrey, 2017-08-02 12:51:01

The "Add to Cart" button on the 1C Bitrix product card does not work?

Good afternoon!
There is a site on 1c bitrix and I made it so that in the basket (along the path: "/personal/cart/") the goods for the promotion were displayed.
The output of the goods was done through the "news in detail" component. There is one problem when you hover over this product in the basket, more precisely, on the product card and click on the "Add to cart" button, nothing happens
From other pages, the "news in detail" component works out, the button works when clicked, adds to the cart
I looked in the console, in the network
it's from the cart page, when you click on button (does not work):
a28db2ad043d4bb68248977949bcadaf.png
this is from any other page (works):
672d054a19754ff7b54aad68c8f6fe1b.png
Maybe someone has come across a similar one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2017-08-02
@gromdron

The "news details" component (bitrix:news.detail) is not designed to display products.
To display a product, you need to use the capabilities of the bitrix:catalog.element component. It
is not very clear in the course of the text how you want to add it to the basket while in the basket? Do you have a popup window? Do you connect and transfer scripts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question