Add to cart Orange

Asked

Viewed 46 times

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.

  • I added Fagner here.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.