I have created a new custom module and DB table for magento. What is the best wat to populate this with customer data.
For example when a new customer is created I want to store the ID of this customer in this new table as well and then use this ID to display various information in a new section within the admin.
I have created the new section but just not sure how to do the first part. The reason I want to do this is that I want to assign each customer a specific discount per category.
Thanks
Robert
@Robert,
there is a better way for doing this, and you do not need to create a module.
You can associate your customers to groups in the Customer->Customer Groups menu.
After create the customer groups, you can create a specific discount for this group and for each category. For doing this, you should:
Example:

But if you want to proceed with the original idea, I suggest you create a customer attribute, instead of creating a new table. By doing this, the custom attribute can be shown at the customer information with no need to create another admin page.