Hi,

I use location to register some french address. In france, we don't only have province field. We have "régions" and "départements". A region contain several départements.

For the website I'm making, the user only need to select regions. ATM, location include file for france work with departments, so I need to load another location.fr.inc file with a list of regions only.

The problem is that I don't know how to load my custom file, I copied and altered location.fr.inc file into my theme folder, I need to load it now, how to do that ?

At the very least, I could copy location module to /sites/my_site/modules folder instead of /sites/all/modules folder, but I would avoid to duplicate a +11MB module and to hack it just for that, so a solution to do that, in a drupal way, without hacking module core is welcome.

thanks

zmove

Comments

panvera’s picture

Priority: Normal » Critical

I am with an international non-profit, and we have the same issues, with a number of french regions and provinces missing. Please help.

TechnoBuddhist’s picture

I'm trying to get some countries upgraded and I'm having the same problems.

I've updated the location.xx.inc, reloaded caches, cleared country and province caches and not had any success. I thought that upgrading to the latest dev version would help, making sure that my new code was in the supported folder before upgrading and it didn't help.

My last step now is to uninstall and reinstall.

Any help would be greatly appreciated.

I'll post my upgrades as patches for the community, once I've got them installed and tested I will!

TechnoBuddhist’s picture

My problem was different to the original, so I offer a solution that worked for me.

I changed the location.xx.inc files directly in the /location/supported directory and once I clear the caches in admin location->location utilities, my counties are displayed correctly.

I don't know how/if you can create 'custom' versions in a theme directory.

yesct’s picture

Priority: Critical » Normal
summit’s picture

Hi,
I have the same problem as http://drupal.org/node/540704#comment-2180804, I see that the regions in France stated in: location.fr.inc are not complete.
Two questions:
1) Does anybody have a complete location.fr.inc as stated on: http://en.wikipedia.org/wiki/List_of_arrondissements_of_France#Lists_by_...
2) Isn't it easier to use the google maps information and place this in the province field?

I will make a new issue with these questions also, ok?

greetings, Martijn
http://www.campings-europa.com

summit’s picture

Hi, I see this issue now: http://drupal.org/node/635958 will look into that.
Question 2 about the webservice google maps api instead of building our own list on location.fr.inc is still valid.
greetings,
Martijn

ankur’s picture

Status: Active » Closed (won't fix)

If someone has a patch for this issue, please come forward and re-open this ticket.

summit’s picture

Hi, wouldn;t this help: http://drupal.org/node/826656#comment-3131350 (I am on travel, so quick reply).
Greetings, Martijn