Answer the question
In order to leave comments, you need to log in
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):
this is from any other page (works):
Maybe someone has come across a similar one?
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question