How to create a custom registration module in magento - magento

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!

Related

Magento drop down to be selected by buyer

I am new to Magento. The website I am working on sells contact lenses and some custom attributes need to be added on the product page. Now requirement states that user has to select some prescription values from drop-down fields before adding the product to cart. I am totally lost on how to do it. This question asks the same thing:
Fields to be filled by the buyer in magento product page
But the answer points to dead link. How to retrieve some custom information from user on product page and store it along with order?
This is possible with custom option. Magento provide custom option facility. when you create custom option then it displayed on product page and you will get information from customer and that information stored in order automatically.
reference link : https://www.youtube.com/watch?v=wfZCXjWqrSM
You can create Dynamic custom option. I have answered thw whole process here:
dynamically add product custom options magento
As the Custom option applicaple to particular category. so you need to add required conditionon on precription form on product detail page.
You can manage this using custom option and there is a great module available in magento connect to achieve your goal.
http://www.magentocommerce.com/magento-connect/custom-option-manger.html

Do we have any option of adding suppliers and suppliers information in the magento admin?

I'm new to magento. I need to add suppliers along with our products and the supplier information should also be editable. Please suggest me how can i do this. I'm using Magento 1.7
Thanks in advance.
You will need to install an extension for that. I search for some and I just found this: Suppliers on Magento
You will have to send him a private message to know it ^^
By default magento not provide this functionality, but still you can do this using magento attribute.
Create one attribute "supplier or something" and assigned this newly created attribute to Attribute Set of magento, now this newly created attribute is display in your product edit page.
If you are neu to magento this link might be useful to you How to create attribute?

Magento adding a new filed on the registration panel

Hi guys i'm trying to add a new field in magento registration panel named hospital address and i need to add more fields... i've done this with some changes in magento core files like register.phtml AccountController.php config.xml Grid.php Account.php CustomerController.php edit.phtml everything has been working but at the end i have found that admin can edit the hospital address but customers can't edit this when they login to account edit page is any one here know this issue and have a solution ? here is the full script http://goo.gl/EBMzM
Thanks
Since magento is based on entitiy attribute model. You can not manage the attribute of the registration field directly. If you are a software developer you can create attribibute in database and change in your code in the same way. If you are not a software developer you can install a module which provide facelity to manage your resistration page. You can search on google by keyword "magento registration field manager" and found verious module for the registration field management.

Magento: adding product from frontend form

I have magento demo shop and for example i want registered user to be available to post a product from frontend? Can anyone hook me up with some code showing how to make it? Is it even possible in magento?
It's certainly possible. It actually shouldn't be all that difficult. You're going to create a module, programmatically create an order, and link this page from somewhere. You should be able to hack one together with the following resources:
Programmatically Creating Orders - Inchoo
Creating a Custom Module part 1-8
yes dear it is possible, you have to create a module for that and i think you give to link/tab in customer account page in front side.in account page you provide form of add new product.you have also provide all option like in magento back end. but some customization are required

sugarcrm users insert in magento

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

Resources