Address Field is a Drupal 7 field module to hold postal addresses, implementing a subset of the fields defined in the xNAL standard.

learn more… | top users | synonyms

0
votes
0answers
16 views

Hierarchical select list using AJAX on Address Field form not updating

I'm using a custom module with an Address Field plugin to pull Address Field fields from a web service. The first bit is working (pulling a towns list) but I want to have a hierarchical select list ...
0
votes
2answers
38 views

Using webservice to popolute/search Address Field fields

I'm busy developing a custom shipping module and want to have an auto-complete/select list of towns but the available data for the list is from a webservice (the reason for this is so that the ...
0
votes
1answer
36 views

Collecting user and node locations seperate or combined?

In my drupal site i like to have the location of users stored as well as the location of nodes. To store these locations i am using Geofield in combination with adressfield. Adressfield collects the ...
0
votes
1answer
30 views

How can i add our own field in Ubercart billing address?

I have used Ubercart in my project. I would like to add my own one field in Ubercart Address field. How can I? Does any one had same experience?
0
votes
0answers
30 views

Get the form elements dynamically for addressfield

I need to build address fields for a client, depending on the country. I wanted to use addressfield, since it has all the code to generate these forms for node edits. The code I'm using is: // get ...
1
vote
1answer
46 views

Using EntityFieldQuery with Address Field

I have a custom content type with a postal_address field provided by the module addressfield. postal_address fields are one field in the custom content type. This one field is comprised of many ...
3
votes
2answers
178 views

Save user fields in commerce profile

I add some fields to default user fields,like phone,address,city,... , I want If user edit or filled up his user information in user/uid/edit when submit ,if there is not any commerce shipping ...
0
votes
2answers
141 views

How to dynamically Prepopulate / Prefill addressfields

I have an single entityform of type 'letter generator' this contains two addressfields: 'To' addressfield 'From' addressfield I would like to prepopulate / prefill these addresses with content ...
0
votes
1answer
56 views

Commerce Dynamic Address Field Issue

I've got a problem with the dynamic address field. Maybe it is a problem with the feed-importer, not quite sure about that. I've imported customers to my database, in the view, name and address are ...
0
votes
1answer
147 views

Prepopulating county/state field (ajax driven field)

Before I describe my problem, just going to mention that I tried Commerce Addressbook and Commerce Extra (address populate) modules but the first one is not suitable in general for my project (because ...
0
votes
1answer
61 views

Add Additional Fields to Address Field Module

How can I add additional fields to the Address Field module's Postal Address content type field? In this specific case, I would like to add county. The default fields for the United States are:
0
votes
0answers
54 views

map leaflet disappeared

Im a newbie in Drupal. I was supposed to create a proximity search for different business locations. Each location has it's own node with different blocks on the page showing content related to the ...
0
votes
0answers
160 views

PHP Fatal error failed opening required file

I am trying to build a site with Organic Groups (a site like myfamily.com, with the groups being individual families), and I am getting a persistent PHP Fatal error PHP Fatal error: require_once(): ...
0
votes
0answers
41 views

Save field collection item programmatically

I'm trying to set the postal code for a user. The postal code is a field of the Address Field module and the address field is in a field collection. I can read the postal code value using this: ...
1
vote
0answers
39 views

Can't see addressfield on custom form

I created a module that displays a very simple form: name of organization, address and contact info. I've been able to add all components to the form with the exception of the address. I installed the ...
1
vote
2answers
171 views

Use views to prepopulate fields

I have a site that generates letters to be sent to schools. The visitor arrives at the front page where they are presented with a map (leaflet map) with all the local schools marked on it. They then ...
0
votes
1answer
146 views

Programmatically Change Administrative Area in AddressField

I have some external data that I have introduced to Drupal for a users address (not in an address field). I am setting it so that when a user loads the checkout page in commerce their info is ...
0
votes
2answers
171 views

addressfield module - remove addresses with only a country

For a site I am working on I am using the address field. Each node can have multiple addresses and at least one is required. All the addresses are in the US so I set the default to the US. When the ...
0
votes
1answer
33 views

How to change an address field that says “There is data for this field in the database. The field settings can no longer be changed.”?

How to change an address field that says "There is data for this field in the database. The field settings can no longer be changed."? I want to add a "Company" field as part of the address. I don't ...
0
votes
0answers
147 views

Difference between hook_form_alter and hook_field_attach_form

I was attempting to add default values to the addressfield field type (on the Drupal Commerce billing pane), and originally tried doing this in hook_form_alter and it did not work. I then found the ...
0
votes
1answer
273 views

how to use hook_field_widget_form

I am trying to understand how the addressfield module is using hook_field_widget_form. When is it called and where are its parameters coming from? When I do a printout of its $instance parameter, I ...
0
votes
0answers
24 views

Set Value to Nothing using Rules

I'm using the addressfield module. In the module, the country field defaults to a specific country and cannot be nothing. Is there a way using rules I can set the country field to nothing? I thought I ...
0
votes
0answers
92 views

How replace city text box in shipping address with select component in drupal 7 commerce

I want to know, is there any way to change city textbox in shipping address (in Drupal commerce 7) to select component? in normal mode, user have to write the name of city but I want to change it to ...
0
votes
1answer
289 views

Migrate addressfield: Call to a member function import() on a non-object in migrate/includes/migration.inc on line 696

also posted to Migrate issue queue as a support request I am importing users and data from csv with a Migrate Group. The initial user creation and some additional data in other tables in working ...
0
votes
1answer
210 views

Send Billing Information from Address Field to PayPal site using WPS

Referring to the solution here posted by Fnik, I'm trying to implement it on my own custom module. But I thing our two sites are configured differently, and since I'm not too familiar with php, I ...
5
votes
1answer
348 views

How do I populate an address field in php?

I want to import data from a external source and so am writing a module that creates content by populating the fields of node bundles in code. I followed this guide which is great. So I am working ...
0
votes
1answer
58 views

How should I structure a node migration that has three locations?

I have a situation where I need to migrate a D6 node that has three location fields. The example code shown in the drupal module documentation ( https://drupal.org/node/2018113 ) isn't working. I ...
0
votes
0answers
380 views

How to make address1 field and zip code non required with Address Field module

I'm using Drupal 7 and the Address Field module I want to make it a required field but only the Country and City values. I want to leave the zip code and Address as optional. I don't find a way to ...
0
votes
2answers
386 views

Drupal7: Addressfield Module: Add State (for Germany) and Drop Down Menu

How do you change the default fields in the addressfield Module for a given country? For Germany you have , while for USA you get , including a nice drop down menu with all 51 states. I want to ...
-1
votes
1answer
209 views

commerce_customer_address

I am using Commerce Kirckstart installation. I would like to change a field in commerce_customer_address. I only want a new field, like telephone and I would like to remove State. Some one knows how ...
0
votes
1answer
112 views

how to update a field schema

I am trying to add a field (middle name) into the field_schema of the contrib addressfield module (I initially didn't want to hack it, but was unsucessful in adding a field in from my custom module.). ...
0
votes
0answers
13 views

Address field form in external module [duplicate]

I need to create a custom form and in it there is an address but I can't figure how to use the address field form. There is a way to use the address structure defined in the Address field module?
1
vote
1answer
281 views

Migrate Module and AddressField Locality/City Lookup in PrepareRow Fails

I'm running a migration to move volunteers from a csv file to drupal. I have written the following code. <?php /** * @file * Migration for Volunteer File */ ...
0
votes
1answer
348 views

Make commerce billing information readonly

I want to prepopulate commerce billing address in checkout process and make all fields in the address field readonly. I've tried the next code: $form['customer_profile_billing']['#disabled'] = TRUE; ...
1
vote
2answers
200 views

Expand Addressfield Components in Views

Situation : I have added few more fields in user registration form using account settings->manage fields. The type of the field is cck address field. I created a new view as json document, and I ...
-1
votes
1answer
170 views

Empty default value in a addressfield field

I have created a content type with a addressfield field but in the configuration field form It doesn't let me set an empty default value. How can I fix it?
0
votes
0answers
35 views

Subscriptions depending addressfield field

I have a events web page based on Drupal 7.Each of the events has a adressfield field. Now I need add a subscriptions functionality. I need each user can subscribe to the events taking place in one ...
1
vote
0answers
79 views

Addressfields hide when I come back from review page

I am facing a issue for several days & trying to resolve it but couldn't get any way through it. At first I thought it's issue with commerce_postal_filter module but it's not. So the real issue ...
0
votes
0answers
316 views

Drupal Commerce address validation and/or separate house number field

Drupal Commerce uses Address Field for its billing information. Street addresses are implemented as Address 1 and Address 2 lines. No other fields will be added to the module, since they want to keep ...
3
votes
1answer
148 views

hook_field_attach_presave not saving - user profile field

EDIT: As per a suggestion below, I tried using hook_field_presave, but couldn't access any parameters of the field. I then tried hook_field_attach_presave, but my alterations aren't being saved. My ...
0
votes
1answer
317 views

Address field “Same as above”

I have 2 address fields : Res. addr and Permanant addr. On clicking another field : same as above I want to copy all the values entered in Res. addr to Permanant addr. Please let me know how to do ...
1
vote
2answers
138 views

How to assign a dynamically updating date to a user based on a related field on their profile

I have a site where Users who can expect a delivery to their address every week depending on their delivery route. I also have a Content Type of "Delivery Route" and a Content Type of "Delivery" with ...
1
vote
1answer
96 views

Is it possible to add help text to addressfield module fields?

I would like to add some help info to address field fields from Address Field Module (http://drupal.org/project/addressfield). Is that possible, or do I have to use Javascript?
0
votes
1answer
171 views

How can I use tokens for Addressfield values without using Addressfield_tokens?

I would like to use the Town/ City field as a token for Pathauto. I thought the Addressfield_tokens module was perfect for this, but Entity Tokens breaks Pathauto's patterns control panel; the issue ...
1
vote
0answers
93 views

Can conditions be attached to how a Geofield is populated?

Some of my nodes will be created via Feeds, which will import lat/long data, which I can store in Geofield to pass to Leaflet. However, some of the feeds I am using do not have lat/long data, so I ...
1
vote
1answer
184 views

using same addressfield for profile2 and commerce module

I have a site with two different profiles (with different fields) where one of these are able to buy a product. In this context I want to use the same addressfield for one type in the billing ...
0
votes
2answers
1k views

zero distance in views geofield proximity problem

I am having trouble getting it views to calculate the distance. I want a current user to see the distance to other users however the only result I have gotten is 0 between users. I tried to follow ...
3
votes
2answers
1k views

Rearranging subfields with the Address Field module

Is there a way to rearrange the fields within the widget with a specific hook? Should I use hook_form_alter()? To be more specific, I want to put the country field below the zip-code field when using ...
0
votes
1answer
470 views

Adding an address to a node's address field programmatically

I am presenting a form to receive an address. I want to take the data and add it to a node that has an address field (from the address field module). Can someone point me in the right direction on ...
2
votes
2answers
212 views

Overriding Class Div Form-API

Objective: To override the default classes and divs that are spit out from the Form-API from my custom addressfield implementation in a Drupal Commerce checkout pane. I need to make the classes/divs ...