Home » Magento

Magento: Get order option of configurable and bundle product in cart

3 December 2009 Share/Bookmark

We are not allowed to order configurable and bundle products directly. We have to select product options from product detail page of configurable or bundle product. Only then we can add the product to cart.

The following code fetches the order option selected for configurable and bundle products:

// For configurable product
Mage::getModel('catalog/product_type_configurable')->getOrderOptions($this->getProduct());

// For bundle product
Mage::getModel('bundle/product_type')->getOrderOptions($this->getProduct());

From Mukesh Chapagain's Blog, post Magento: Get order option of configurable and bundle product in cart

email

php magento mukesh chapagain

Get New Post by Email
RSS Feed Subscribe RSS Feed
  • vishal lakhani

    Hi i want to show Bundle Product’s options on product Listing page i have Paste your code as below

    // For bundle product
    Mage::getModel(‘bundle/product_type’)->getOrderOptions($this->getProduct());

    Get Following Error…. Help me to Solve it Please or Tell me how can i show Bundle product’s options on product listing page

    Fatal error: Call to a member function getCustomOption() on a non-object in /home/gizmoheart/public_html/app/code/core/Mage/Catalog/Model/Product
    /Type/Abstract.php on line 411