cancel
Showing results for 
Search instead for 
Did you mean: 

How to add extra filed in custom option near sort order

SOLVED

How to add extra filed in custom option near sort order

What I want to know is, is it possible to add another input box after 'Sort Order' to say 'count'??

 

Screenshot from 2018-10-18 18-18-00.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to add extra filed in custom option near sort order

Hello @yash_goswami1,

 

I hope you have an idea to create an extension in Magento so you have to add below script to add new column catalog_product_option_type_value table.

 

/* @var $installer Mage_Catalog_Model_Resource_Setup */
$installer = Mage::getResourceModel('catalog/setup','catalog_setup');

$installer->startSetup();

$installer->getConnection()->addColumn(
    $installer->getTable('catalog/product_option_type_value'),
    'my_column_name',
    array(
        'type'    => Varien_Db_Ddl_Table::TYPE_TEXT,
        'length'  => 255,
        'comment' => 'My Column Name'
    )
);

$installer->endSetup();

--
If my answer is useful, please Accept as Solution & give Kudos

View solution in original post

5 REPLIES 5

Re: How to add extra filed in custom option near sort order

Hello @yash_goswami1

 

Yeah it is possible to add new input field in custom options.

 

You can add custom input field as mentioned steps in below link :

https://magento.stackexchange.com/questions/159833/custom-options-drop-down-add-field/159854

 

Problem solved? Click Kudos & Accept as Solution!

Re: How to add extra filed in custom option near sort order

Hey! 


the thing is i don't have access to the manegto DB 

it is possible to do it without touching the database ???

Re: How to add extra filed in custom option near sort order

Hello @yash_goswami1

 

Yes you can do this without database access.

Re: How to add extra filed in custom option near sort order

How?

Re: How to add extra filed in custom option near sort order

Hello @yash_goswami1,

 

I hope you have an idea to create an extension in Magento so you have to add below script to add new column catalog_product_option_type_value table.

 

/* @var $installer Mage_Catalog_Model_Resource_Setup */
$installer = Mage::getResourceModel('catalog/setup','catalog_setup');

$installer->startSetup();

$installer->getConnection()->addColumn(
    $installer->getTable('catalog/product_option_type_value'),
    'my_column_name',
    array(
        'type'    => Varien_Db_Ddl_Table::TYPE_TEXT,
        'length'  => 255,
        'comment' => 'My Column Name'
    )
);

$installer->endSetup();

--
If my answer is useful, please Accept as Solution & give Kudos