How can I add and fetch data from database in magento - 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.

Related

How to add user custom fields to the edit profile form?

I had to add a series of custom fields to the joomla registration form. Thanks to the guide I managed to do it, both for the registration form and for the administrator form.
The process I followed for this are the following:
Added the fields to the users table
Added the fields in joomla user entity /library/src/user/user.php
Added the fields and definition to /components/com_users/model/forms/registration.xml file to update the registration form
Added the fields and definition to administrator/components/com_users/model/forms/user.xml file to update the user edition form for user with administrator role
Now I require the user to be able to change their profile data with the inthe fields that were created manually. To do this I added a link to the menu
form to edit profile, here I expected to see all user fields, both native and custom created, but instead I obtain only the native fields, although upon inspecting the object (user) I can access all the user fields.
I created the fields by hand and then I expected that when they were saved they would persist, but it is not, when sending the form only the native data is updated and not the custom fields.
When I inspect, I see that a component named k2 is the one that facilitates this profile editing form, I am new to joomla and its ecosystem
Could you please give me guidance on how to implement this task?
Greetings and thanks in advance
Do not edit core components.
There is a way to do the same using Profile plugin.
https://docs.joomla.org/Creating_a_profile_plugin
Go through above link and create a new profile plugin.
This is not the way to add extra user fields. What will you do if you need to update Joomla. Joomla releases security updates at regular intervals. First you need to create a user plugin and then you add whatever user fields you need. I found a detailed description here, you also can have a look. if still you get any doubts you can ask me here in comments.
https://smartyblog.com/adding-custom-fields-to-joomla-registration-using-profile-plugin/

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.

how to duplicate Odoo v8 database?

I've been trying to duplicate Odoo's datebase in order to create a production database and a testing one. How can I do this? Once this is ready, how do I know which database I am working at?
You can do database related operation like create new , duplicate , drop, backup database or restore database from odoo ui it self.
http://server_address:port/web/database/manager
Here you will get all the option to manage database from ui.
just click on database manager just below the password field of login page then you can see Menu Named 'DUPLICATE' just click on that then there are two fields write there the source database name and new(Duplicated) Database and then click on Duplicate button on header. It duplicates DB in Seconds

add custom image field for custom options in 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.

Magento Customer Wizard Registration

I'm trying to create a simple registration for the magento visitors using custom steps. I need to create a wizard that helps the users to follow a path previously set in the administration panel.
At the moment I have created the extension but I am having some difficulties to create the front-end wizard form. What I'd like to achieve is a multi registration form where if the user go from the first form to the second one Magento has to save the data and wait if the user wants to go on the next new form and so on...
Here a mockup: http://minus.com/lF3krBVJG0WEM
How have I to create a multiform that follow this behaviour?
Regards

Resources