Hi I'm creating a quote manualy.
This quote contains a virtual product (so related to a configurable product).
My quote is submitted, but the options from the parent product is not added to the quote.
I've got this :
$buyRequest = new \Magento\Framework\DataObject(); $buyRequest->setData([ 'qty' => $qty, 'super_attribute' => [ 58 => 328, ], 'options' => [58 => 328,] ]); $quote->addProduct($product,$buyRequest);
This [58 => 328,] refers to the parent product. Is this why my product doesn't have any option when the quote is submitted ?
(58 is the custom option id and 328 is id of the selected value)
any help would be appreciated.