I am very new in Magento and from last few days I am trying to figure out how to add a Custom text field in the frontend for configurable product. I tried to do that but text-field text area is not showing up in the configurable product list of attributes. I can add drop down only.
I am looking for something that for example a customer want to buy a t-shirt and the text inside the t-shirt will be configurable from frontend product view page.
For example : custom text cost $5. There will be a checkbox in the product view page. When the customer click on it a text box will appear where he can add his text for the t-shirt. The $5 will automatically add with the checkout price.
I hope I am able to make you understand what I am trying to do. But, search a lot to figure it out but failed.
Thanks
Best Answer
Check out this example it might help you
Step 1 - Create a file as
Mypackage/Mymodule/Setup/InstallData.php
and add the following code thenStep 2 - Go to project root directory and Run the following commands :