I created a new module following with this url:
In my module i created a registration form.
So now i want to insert the data entered into my registration form.
How is it possible?
Take a look at these instructions about models and database access:
http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-5-magento-models-and-orm-basics
This should get you up and running.
You need a custom db table with a custom model and collection of this table. There are lots of way but this is the magento way.
This link will help you http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table
Related
I'm a newbie of Magento.
I need to export some table data out of magento, so I know I need to use the magento webapi.
I am able to get data from sales_order table through endpoint:
GET /V1/orders
from devdocs.magento.com/guides/v2.1/rest/list.html
I don't know where are the endpoints for: sales_order_address table, sales_order_payent table.
So please, can you show me where are them?
I am new to Magento 2. Can any one tell me how to save contact us form data into the database using events and observers, and display them in admin grid under the customer section in Magento 2?
If you have set SMPT to your magento2 store then you will receive conatct us data to mail id which you mention at Stores->Configuration->General->Contacts->Email Option->Send Emails to.
On this if you wish to show at admin grid, you must create your own table and grid to show the data in admin and create a before plugin to the controller Magento\Contact\Controller\Index\Post where you save data into your table you created.
You must create a separate module for the contact us a table, admin grid and forms.
I am new in magento. I want to create a custom registration module for seller in magento 1.5 or 1.6. There are needed two registration like one is general user, another seller. I don't know how magento's default registration module is built. I also don't know how to set up and how to connect between the form and the table like 'customer_entity_varchar' and other table.I think it follows MVC pattern like Joomla And also how to call the function from controller to model for writing "INSERT" sql query. If any one knows about it , please, guide me with giving links or doc.
Thank you.
You need to learn about creating a Magento Module.
Create a Magento Module Basics in Magento Module Development
Then you going to create an own registration controller for sellers.
Extend the customer entity by an attribute saying the customer status (seller|general) or use the Customer Groups Adding Attributes to Customers Entity (see for additional informations About EAV Attributes)
add custom attributes to sellers like in step 3.
I hope could help you!
Hi I have a sugarcrm instance and magento instance they two are separate
i mean they have different databases. My requirement is when i create a user in the sugarcrm ,it should also insert the admin users in magento How can i do that in sugar,where the code has to be executed in sugar. Any other way is a
I would have to do some research on the Magento API, but in Sugar, you would want to create a logic hook in the Users module that triggers 'after_save'. You would point it to a custom class/method you've created that would use Magento's API for creating a new user.
You will need to use logic hooks and "after_save" will work for you. So add a logic in after_save. Write you code in simple PHP which will get data from Sugar bean fields and will create Magento user accordingly. Read this link for logic hook: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Logic_Hooks/#Module_Hooks
I have to add some forms for various purpose like getting info from client regarding a product, getting query from customers, some lead forms.
So how can i add new forms in magento other than having new module for forms. The form will be working with some custom db tables or need to mail them to admin/customer.
Please help me out. Thanks in advance
Since Magento is built on MVC model, i think u should add module in order to use any form.
And if you are reluctant in using them, then there is a possibility of having plain php pages outside magento folder and add those links inside magento either using static blocks or CMS Pages..