How to create new product custom options type in magento, for example I have to give new image custom option type in magento which fetch image from my custom module table and I want to assign that image to my custom options image field .
As Dustin Graham said, it is very tricky. First steps:
Add new node under global/catalog/product/options/custom/groups
. See examples in /app/code/core/Mage/Catalog/etc/config.xml
.
Create new block to render your custom option.
Rewrite Mage_Catalog_Model_Product_Option
and implement saving your custom type options (saveOptions()
method) and loading your custom type options (getProductOptionCollection
method).
If your custom type isn't very custom :) - it should be enough.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With