0
I am creating a module for the Gento in which you can put custom options in the simple products within the grouped.
Only I’m not able to bring the values chosen by the user.
$dataEntrega = array(
'label' => 'Data',
'option_value' =>
'value' =>
'print_value' =>
);
$saborProduto = array(
'label' => 'Sabor',
'option_value' =>
'value' =>
'print_value' =>
);
$value = array('data_entrega'=> $dataEntrega, 'sabor' => $saborProduto);
$value = serialize($value);
$_item->addOption(array('code'=> 'additional_options', 'product_id'=> $_item->getProductId(), 'value'=> $value));
$_item->save();
It would be interesting to add an excerpt of the code you are trying to.
– Fagner Fonseca
I added Fagner here.
– Lucas Barbosa