add custom image field for custom options in magento - magento

I am working on magento 1.9 version.I want to add a custom image field in drop down of custom options.
I added a text field using following guide
http://magento.ikantam.com/qa/how-add-custom-attributes-custom-options
which is working fine.but when I add a file field then it shows in admin but not save image field value in database.
please help me to solve this.

Neeraj,
Did you specifically click "flush cache storage" By following this guide and adding new tables directly to the database, Magento already has this record in cache. By flushing cache storage, you will allow magento to recognize the new structure and be able to save the record. I have accidentally forgotten to do this quite a few times and you end up with the inability to save a record even though your structure is there.

Related

Where is Magento's data for custom modules in admin panel contained?

I made a module for admin panel magento and added fields.
All fields (text, textarea, etc) and their values are showing correctly. When I save it, they are also getting saved.
I cleared session, cookies and browser history and all. The values are still there. That means values getting saved in database.
But since I didn't provide any database name, I don't know where those values are persisted.
Can anyone tell me where the data is persisted?
Magento takes care of persisting the admin configuration automatically. The field values are stored in the core_config_data table.

Embed Custom Text Fields in OnePAgeCheckOut Magento

I need to add text fields in Magento OnepageCheckout form. It is not possible to add text fields via admin panel. It is a module installed for one page check out and has its fixed fields so only possible via coding.
I have made changes in
app/design/frontend/base/default/template/onpagecheckout/onepage/billing.phtml which is the exact page I am suppose to make changes in but form displays as previous. I did flush the cache every time but not getting whats going wrong.

How to add an extra field in magento admin panel to upload a pdf?

I'm new to magento. I need to give an option to upload the pdf in the add product page.
Just need to give the file upload option with extra field.
I'm using magento 1.7.
Thanks in advance.
There are two ways you can achieve this:
1. Easy one
Create a new product attribute, let's say product_pdf text field, and assign it to some group and attribute set. This field should now reflect in your admin's product page and allow you to save PDF name.
Then make a directory on your Magento (may be in media/pdf) and save all your PDFs if you have. If not, then each time you save the value in Product's custom attribute that we created (product_pdf), also upload the PDF manually at the location you created (media/pdf).
So whenever in frontend you want to show the PDF of product, you will always get the file name from product_pdf attribute and the location should be media/pdf.
2. Difficult/Lengthy one:
Create a file uploader in your Magento Admin's Manage Product screen. Here everything should be in your custom module, from creating a new field to uploading it.
I will not go far, but give you some place where you can exactly know how to go with it: http://www.magentocommerce.com/boards/viewthread/11667/P0/

Magento: viewing sample data/sample store on the front

I've installed the sample data from the magento site. Then also
installed magento with each mysql table configured to be named
with the magento_ prefix so as to tell the magento system tables
apart from the data tables. But I have the following problem (yes,
I installed the data first, and then magento, so that's not the issue):
The main content area when I http to localhost/magento/index.php
is blank. I don't see any data. I was expecting to see the
Magento sample store with sample category pages etc...
What have I done wrong?
Been having the same problem, it seems that you cannot use a table prefix in your installation if you want the sample data to show up.

How can I add and fetch data from database in magento

I had to download free plug-in and install in my local.
I want to add a new field in register page, but In plugin there's also some new fields in register page and I follow the steps, they do to add new field, I can view the fields what i add in register page.but I can't update the table.
So I went to database and alter it. and store some value. Now I can't fetch the value.
If I did anything wrong, please guide me further.
Can insert data without install it again option.

Resources