Select default value for product custom option

In a recent project, my client wanted to be able to select default value for product custom option. This is not a feature which is supported by Magento and it requires us to have some customization.
I created a module called "CustomOption" which allows admin to select default value for custom option of simple product. This module is developed simply and easy to use. In the backend, you can find a menu where you can select default value for all custom options of simple product. Go to Product Options > Manage Product with Custom Options:

Click on a product, you can select default value for each custom option.

Once you save this option in the backend, the value will be selected by default in product detail page in frontend. Here is how it shows in our site:

Well, I hope that you understand the goal of this module. Finally, here is the link for you to download this module. If you have any problem when installing and using this product, please do not hesitate to let me know.

P.S: We make this extension available in Git so everyone can make changes and improve the module:

49 thoughts on “Select default value for product custom option”

49 Responses to Select default value for product custom option

  • Greg

    Very nice Plugin!

    works perfektly on magento 1.7.2!

    but is there any possibility to set the value in an csv with the product import? or the possibility to select more than one product and set the default value? my shop has more than 3000 articles an it would be very protracted to set the default value fpr every single product!

  • Anant

    How to install this for Magento Go?

  • Neo

    @Anant: I am sorry that is not available for installing in Magento Go. You might need some work yourself to get it done.

  • SmartDude
    SmartDude on October 22, 2012 at 8:17 pm said:

    Thank you for the plugin. I am having an issue in 1.6.2: from the Manage Optioned Products screen if you click the next page button or try to select a different page number or if you try and change the quantity of products the follow error appears. "Fatal error: Call to a member function setProducts() on a non-object in /home/#######/public_html/app/code/Magebuzz/Customoption/controllers/Adminhtml/CustomoptionController.php on line 223." I also agree with Greg in that a csv import option would be a key enhancement.

  • Gary

    I have the same issue as SmartDude. Though I'm running - Any ides?

  • Neo

    The problem was fixed. You can download it from the link in article again.

  • Paul

    I installed this module and when I try to open the tab to use it, I keep getting reverted to the login screen. If I inspect element and click on the link directly, it works like a charm. Any idea on how I can fix this?


  • Joerg

    Great work! thanks ....

    is it possible to show the Price with selected default Value on the Frontend (Products Listing)?


  • val

    Hi - I just installed this mod on and I'm getting the following when clicking on a product from the Manage Optioned Products screen:

    Exception printing is disabled by default for security reasons.

    Error log record number: 939769459168

  • Neo

    @Val: Please go to errors folder (From root folder of your Magento site). Change the name of file local.xml.sample to local.xml. After that you can see more description about the problem. Keep me updated.

  • magento customization

    This is great information you are providing!
    Its very well detailed and appealing to keep to eye to read more.
    We also try to keep our blog filled with information and helpful methods to help anyone with carpet problems.
    Once again great blog. Very well informative.

  • Jake
    Jake on July 17, 2013 at 5:11 am said:

    Hi, it works perfectly for simple products. Configurable products don't show up in the list though. Is there any way to make it work for configurable products as well? (so that i can add default values for individual product options fields - not for the product configuration itself)


  • Jake
    Jake on July 17, 2013 at 5:23 am said:

    Ok, found out myself.. for those who have the same problem:


    remove the line

    ->addFieldToFilter('type_id', 'simple')

    let me know if there is anything wrong with doing so.. thx.

  • anupam
    anupam on August 7, 2013 at 1:24 am said:

    I installed it successfully, It got selected option defined by me initially while page is loading but it changed to first option selected when the page is fully loaded.

    please help.

  • Neet Reddy
    Neet Reddy on January 8, 2014 at 8:14 pm said:

    This is a great extension and useful to make. I have a query though.
    The base price of my product is set to 0. This Price will be decided by the default custom option selection. e.g. i have a custom option called Box Size. By default I select the Box size of 12. So the Price should be what is assigned here.
    This displays perfectly on the product details page. However how an i read this default Price in the category page/ product listing page?

  • Neo

    Unfortunately, this module will work only with product option in product detail page. It will require too many effort to make it work in category page.

  • Francisco Perezcano


    I installed the extension successfully, but when try to load a simple product get this error:

    Base table or view not found: 1146 Table 'm181.catalog_product_option_title' doesn't exist. Our magento database has a prefix MTO_, which is not show on the error message.

    Please help.


  • Neo

    So the module might not work when the database has a prefix. It should be a problem. Please open app/code/local/Magebuzz/Customoption/controllers/Adminhtml/CustomoptionController.php and find this line:
    Change it into ->join(array('tbl2'=>Mage::getSingleton('core/resource')->getTableName('catalog_product_option_title')),
    I also updated the package in the blog. So you can download it.

  • Ozzie

    Thanks! The simplest solution to the most frustrating thing this week!

    By the way I am using Magento 1.8.1


  • TJ

    Hi, Thanks for the module. Maybe a noob question, but how do I install the module? I copied the necessary files into the respective directories, but the option is not showing up in the backend.

  • josh

    Hi great module. thank you. is there a way to preselect multiple options? as its a drop down we can only select 1 default value. i Needed 3 for my project. it would be great if you could help
    thanx again

  • Matthijs

    It works thank you for that, it actually took me a while to notice the extra menu option in the top off the cms-menu.

    Product Options > Manage Product with Custom Options

  • Gil

    I get an error "Fatal error: Call to a member function getValue() on a non-object in /web/sites/ on line 27"

    Running: "Magento ver."

    Any idea how to fix this error?

  • Chris

    Is there any way to have Magento use the default custom option when I click the "Add to Cart" button from a product list (i.e. not the product's page)?

  • Neo

    This tutorial is just helpful in product detail page. I think you will have to do more for making it work in product listing page.

  • Chris

    Hi Thomas,
    thanks for sharing this great module.
    I'm having an issue. I can't see any menu entry/cms entry of the module after installation (ce-1.8.). Where should this menu be? Or might this be another error/bug?
    Thanks in advance.

  • Neo

    Hi Chris, I just tried to install in Magento 1.8 and I can still see that menu. It is working without problem.

  • Salman Ahmed

    Hi . Installed this but it shows a blank page on clicking 'product options' in the menu? Please help..

  • Salman Ahmed
    Salman Ahmed on July 9, 2014 at 3:01 am said:

    Hi. In error_log im getting the folowwing error:

    PHP Fatal error: Class 'Mage_Adminhtml_Controller_action' not found in root/app/code/local/Magebuzz/Customoption/controllers/Adminhtml/CustomoptionController.php on line 2

  • Matt

    Great extension, just what I needed.

    Is it also possible to extend the extension to work on bundled and configurable products?

  • Salman Ahmed
    Salman Ahmed on July 9, 2014 at 10:13 am said:

    Hi. I was able to solve the issue on the line 2 of the CustomoptionController.php file, change 'Mage_Adminhtml_Controller_action' to 'Mage_Adminhtml_Controller_Action'

    That should make it work! Thanks for this handy plugin. It would be awesome to make the options default for multiple products having the same set of options.

  • Arnaud
    Arnaud on July 9, 2014 at 9:29 pm said:


    After installing this module on Magento 1.8.1, I cannot find the menu ?

  • vamshi
    vamshi on August 28, 2014 at 8:22 pm said:

    Thanks dude it works perfectly.....

  • Charlyn

    I have 2 custom option in my products. The Select and finger size custom option. Have set the default value on Select and the default value on the finger size. But when I reloaded the site, the finger size custom option only shows the dufault value but the Select custom option does not. Is there a way that I can set the 2 custom option to its respective default value? I have installed in on version
    Any idea on how to fix this?
    Thanks in advance :)

  • prakash

    In admin panel, it is working properly. But the value is not selected by default in product detail page in frontend. I have installed magento version Can you please tell me what may be the problem ?

  • Silas

    Great plugin.
    Works in Magento 1.9
    Is there any autoselect for all products, so i don't have to do it manually on 600+ products?

  • Daniel
    Daniel on June 6, 2015 at 6:08 am said:


    how do i install this tool?


  • madhur

    great extension
    but the price comes 0 on the products grid page. It would only be useful if the default value is fetched there also.Waiting for reply

  • madhur

    Is dere a way to get it working on product listings page....thanks

  • Magentooo
    Magentooo on September 3, 2015 at 12:18 am said:

    Not working on frontend, it's not selecting anything for default, Using

    Someone has a solution?

  • hammad

    I installed this but its not listing any product. Product options tab shows an empty grid

  • hammad

    Product default option value is showed in frontent

    is empty for every product?

    i dont understand

  • Anaïs


    I am on magento and I would like to use your extension. I downloaded it abd it working well on admin but I have a problem in frontend. Indeed, the value which I choose to be the default value is showed around 30 sec. and after the text -- select a value -- appears again.
    Could you help me ?


  • Mark

    Not working in frontend for me either. Could this be a theme integration issue? I see nothing in the installation package that touches app/design/frontend, so I don't even know where to begin troubleshooting.

  • Hans

    Hi I'm trying to get it to work in Magento 1.6.1.. In the backend I have the option to set default but it does not show up in the frontend...
    What am I missing??

  • sahil banga
    sahil banga on May 1, 2016 at 12:14 am said:

    This is what i need. Thanks. I recommend this plugin

  • Kavan Vadaliya
    Kavan Vadaliya on June 2, 2016 at 3:00 am said:

    pls share a video for how to install this extension

  • Kishan Patadia
    Kishan Patadia on June 2, 2016 at 9:27 pm said:

    Does it support Magento 1.9.x ?

  • Devangi
    Devangi on June 28, 2016 at 2:04 am said:

    After Installation , Once I click on product option tab then its gets redirected to forntend 404 error page,
    Please reply as soon as possible.