4

I Am Creating Quote Item Option [additional_option] To Cart.

I Am Using This Code Base

    $item->addOption([
        'product' => $data['product'],
        'code'  => 'additional_options',
        'value' => serialize($this->additionalCart)
    ]);
    $item->saveItemOptions();

Product added in Cart Successfully Added With All My Options And Showing On Cart Page And MiniCart,

but After Checkout & Placing Order Additional Options Are Not Showing In Admin->Sales->Order.

Is There Something I Forgot To add?

1

check out https://magecomp.com/blog/add-additional-options-magento-2/, you must add an observer to actually add the custom option to the order

0

Magento 2.2.*

Check out Can't retrieve custom option from order items We achieved this functionality by the observer and plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.