We have installed Magento ver. 2.1.6. using composer with sample data.
We have call event checkout_cart_product_add_after for adding addition information with item. The event observer code is given below.
$item = $observer->getQuoteItem();
$additionalOptions = array();
if ($additionalOption = $item->getOptionByCode('additional_options')){
$additionalOptions = (array) unserialize($additionalOption->getValue());
}
$post = $this->_request->getParam('info');
if(is_array($post)){
foreach($post as $key => $value){
if($key == '' || $value == ''){
continue;
}
$additionalOptions[] = [
'label' => $key,
'value' => $value
];
}
}
if(count($additionalOptions) > 0){
$item->addOption(array(
'code' => 'additional_options',
'value' => serialize($additionalOptions)
));
}
When we add the configurable product with addition information in the cart then in shopping cart page display additional information with error Some item options or their combination are not currently available