Closed (won't fix)
Project:
Ubercart Addresses
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
22 Apr 2009 at 16:05 UTC
Updated:
22 Apr 2009 at 18:46 UTC
Hi,
I don't think the module allows the admin of the site to create a new field (i.e: another phone field for example). That is what I need, but the module seems to just offers more "standard" addresses.
How that can be done? Any ideas?
Thanks
Comments
Comment #1
freixas commentedIf you're asking if there is an easy way to add new address fields, the answer is "no". uc_addresses follows the Ubercart model for handling addresses: you can rename address fields and you can disable address fields, but you can't add new ones. I suppose if there is an address field you aren't using, you could try to "repurpose" it as a second phone number.
If you really are asking how it could be done, I'm not sure what to tell you except to start reading the Ubercart and uc_addresses code and see if you can figure out how to do it. I suspect that it won't be possible without modifying the core Ubercart code, which is not something I would recommend.
You might try asking the Ubercart people if they plan to add support for this feature. If they do, then uc_addresses would have to be reworked to support the revised Ubercart code.
Comment #2
ferrangil commentedThank you for your reply.
Yes, my question was if there was an easy way. I also discovered that I could re-use one less important field but I'm not sure which one I might use yet.
Thanks, I will ask on the Ubercart forum to see if anyone has extra knowledge about this.