I have been trying to create add to cart options programmatically. It's working well when i add a simple value but i cannot add any file type like any image.
I used this code to add it with order cart item.
$additionalOptions = array(array(
'code' => 'lmc_custom_thread',
'label' => 'Thread Color',
'value' => "radhagobindwa Das",
'print_value' => "radhagobindwa Das",
'option_id' => "test",
'option_type' => "file",
'custom_view' => '',
'image_path' => '/media/'."j2t_image_small.png",
));
$item->addOption(array(
'code' => 'additional_options',
'value' => serialize($additionalOptions)
));
It's shows only value ["radhagobindwa Das"] and I want to show this image path.