D
D
Dmitry Klimantovich2021-07-01 12:57:06
1C-Bitrix
Dmitry Klimantovich, 2021-07-01 12:57:06

How to transfer along with an additional product to the basket its property?

Good afternoon.
I implemented adding additional items to the cart with checkboxes set as follows:

$item = $basket->createItem('catalog', $product);
$item->setFields(array(
  'QUANTITY' => $quantity,
  'CURRENCY' => Bitrix\Currency\CurrencyManager::getBaseCurrency(),
  'LID' => Bitrix\Main\Context::getCurrent()->getSite(),
  'PRODUCT_PROVIDER_CLASS' => 'CCatalogProductProvider',
));

The additional item is added to the cart as it should. But how else to pass the property along with this add-on?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2021-07-01
@dikey58

Cart properties https://dev.1c-bitrix.ru/api_d7/bitrix/sale/techni...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question