0

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.

2

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

| improve this answer | |
  • Does this not only show what you have put within the textbox on the backend though? As opposed to showing an actual textbox on the frontend? – Richard Cripps Feb 24 '15 at 14:35
  • who should write in that text area? customer? – Holian Feb 24 '15 at 14:47
  • Yeah, It is to customise a product through writing within a textbox on the actual product view. An example of this could be writing in your name on the back of a t-shirt. You would need to write in what you would like through the text-box. – Richard Cripps Feb 24 '15 at 15:08
  • 1
    I think this might help you evernote.com/shard/s107/sh/dad67e41-af89-411c-90e5-76eb434009bd/… – ladle3000 Aug 24 '15 at 22:29
0

There are some extensions which allow to create templates of custom options, which can be assigned on whole attribute sets.

https://www.magentocommerce.com/magento-connect/catalogsearch/result/?q=template+custom+options&pl=0

| improve this answer | |

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.