D
D
Dmitry2020-04-14 11:18:22
1C-Bitrix
Dmitry, 2020-04-14 11:18:22

How to combine products in the Bitrix cart with different price XML_IDs?

Good afternoon!
An item is added to the cart using the class
Basket::add($id, $quantity, $xmlid);
, where $id is the item's ID,
$quantity is its quantity, and
$xmlid is the XML_ID of the item's price, and is passed to the cart as a property of the item.

The product arrives in the basket in such a way that one product with different types of prices is 2 different products
5e95719221b06009351311.jpeg
. Can you please tell me how they can be combined into one?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-04-14
@dimidn

solved the problem using the standard Bitrix CSaleBasket::Add

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question