You are here

Real Name Integration

Please could you integrate this module with real name module? At the moment I am having to enter the customer name in two places, would be very useful to get rid of the profile fields. Using the default address as the real name fields.

I am very happy to pay to get this done quickly. I understand it can be done as per the real name documentation here: http://drupal.org/node/329662. Unfortunately I don't know php :(.

Comments

That's looks like a nice addition to the module. I never used the RealName module myself as I thought it would work with profile fields only. I didn't knew you could give any fields to it to use for the real name. This is something I would like to implement, now I only hope to find time for it.

It seems that the API of the RealName sounded more promising than it was. Currently the only way to integrate other modules with RealName is to 'hack' the module. More specified: you have to make a (little) change in realname_supported.inc and add a file called realname_module.inc where module is the name of the module you want to integrate.
Because of this, code for RealName integration can't be added to Ubercart Addresses.

However, I have worked out the solution. Attached are two files (packed in a zip), to be placed inside the folder of RealName. realname_supported.inc is an altered file to let RealName know Ubercart Addresses is supported and realname_uc_addresses.inc is a new file where the integration code lives.
As I'm also co-maintainer of Extra Fields Pane, I added integration for that module also (because in the Netherlands the name can exists into more parts than just first_name and last_name, for example we have a part called tussenvoegsel).

Thats absolutely great news! I have installed and will test this out today. Quick once over and it seems to be working really well, cant tell you how much time this will save me :).

I see what you mean about the process/module, its not great for upgrading later. I guess this is something that realname should be including in their module rather than in yours or get them to provide a hook for other modules to get into.

However,
- it returns the address object, not the ID
- the user id is provided at the embedding class level
Also, one has to decide which default address is to be used - Billing or Shipping (I would think that Shipping is more appropriate). A setting might be provided for that.

The Real Name integration I posted in #2 is for the 6.x-1.0 version, not for the 6.x-2.x version. I don't think it's a good idea to ask the RealName module maintainers to add support for uc_addresses, because there are two major Drupal 6 versions of uc_addresses. To support uc_addresses they should:
1. Implement code that finds out which version of uc_addresses is used.
2. Update the code in case the API of uc_addresses changes.

It would be better to ask them to add a hook that uc_addresses can implement.

I found an issue for RealName module where it is suggested a hook should be provided: #517844: Add hooks to have modules define support in themselves. I'm not sure if the maintainers still care about the 6.x version. If that's the case, then I'm afraid I will have to close this issue as "won't fix", since there wouldn't be place where this code could live except inside this issue.