1

i need get all Custom Option in magento, get radiobutton, checkbox, textarea and etc..

Let me know how i can do this for my product template?

Thanks

1

Try to get custom option collection:

Mage::getModel('catalog/product_option')->getCollection()
    ->addTitleToResult($storeId)
    ->addPriceToResult($storeId)
    ->addValuesToResult($storeId)

All the date you need is in the tables:

catalog_product_option*

Update:

To get option html, take a look into

Mage_Catalog_Block_Product_View_Options::getOptionHtml()
  • yes, custom options i see, but if custom options - radiobutton or checkbox, how get custom options - radiobutton or checkbox options (clickable for choose options =))? – John Genry May 26 '14 at 13:56
  • Sorry but I did not get your question? Could you please rephrase it? – oleksii.svarychevskyi May 26 '14 at 14:04
  • i need get all custom options from product, and then display in page template for future use – John Genry May 26 '14 at 14:07
  • Added update to the answer. – oleksii.svarychevskyi May 26 '14 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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