Magento – How To add a Text Field to Product View

PHPphtmlproduct

I am trying to add a text field to the product view on the front end of the site.

I appreciate this can be done through custom options but that would involve creating the option for every product that needs the text box.

Instead, I am trying to just create a text field within the template programmatically. However, I am unsure at how best to do this so that it might add itself to the database.

Any help on how to achieve this would be much appreciated. Thank you.

Best Answer

Go to Catalog -> Attribute and create new with options
Catalog Input Type for Store Owner: text area (here you can write also a Default Value)
Visible on Product View Page on Front-end: Yes
Of course at the end you must hook the Attribute under appropriate categories

Related Topic