Topic 7 – Part 9: Product Option

If you are interested in Magento catalog, you must have not skipped product option – one of interesting and useful tools in Magento. Product option on one hand helps admin to easily manage products. On the other hand, it makes customers able to choose exactly products that they need.

How does Magento process the product option when a product is added to cart and an order is placed? Just read on to find the detailed answer for this question.

Add product option to cart

When product is added to cart, the product type instance (model) will process the buy request data and prepare the option for product.

To change the default process custom option (Foe example: your custom product type), you can rewrite this function or catch the event catalog_product_type_prepare_%s_options (%s can be full or lite depending on the process mode).

Convert product custom option from quote to order item

Magento converts product custom option from quote to order item similarly to converting order, address… It uses the model sales/convert_quote to process the convert: