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()); |
No comments:
Post a Comment