when I addtocart simple product and added new custom option using checkout_cart_product_add_after,it works perfect and cart displays new custom option in cart but my new custom option does not display while adding configurable product,it display configurable attribute lable and its value('color: blue') but my new custom option does not see.

My config.xml


My Observer.php

public function addTestInfo($observer)
        $quoteItem = $observer->getEvent()->getQuoteItem();

            $additionalOptions = array(array(
                            'code'  => 'test_shop_info',
                            'label' => 'label1',
                            'value' => 'value1',

                            'code'  => 'additional_options',
                            'value' => serialize($additionalOptions),
        return $this;                   

What I want: My new custom option should display in cart while adding configurable product.

This above code works only simple product not for configurable product. Thanks in advance

1 Answer 1


Finally I found a solution by folllowing link.

It will be used catalog_product_type_prepare_full_options observer


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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