Answer the question
In order to leave comments, you need to log in
Repeating Vue components in the list of Bitrix products?
There is a product card, it is also a Bitrix component catalog.item .
Inside it, 3 Vue components are initialized - buttons: add to cart, add to compare, add to favorites.
They are related to store from vuex. As :key I specified the product id $arItem["ID"] .
And quite logically I see an error
Duplicate keys detected
Answer the question
In order to leave comments, you need to log in
buttons: add to cart, add to compare, add to favorites are rendered using v-for? If not, then why do you need a key there? If you still need it, then select a 100% unique value for key, although $arItem["ID"] is sort of like an id, which by definition must be unique
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question