Hello Blesta, I just signed up for a 30 day trial and I've hit an immediate problem.
It looks like you have chosen to use the ISO 3166 data for addressing, which is wholly inappropriate for any type of online billing system.
In the UK we use addressing in the form of Street Address -- Town / City -- County -- Postcode
ISO 3166 does not conform to this - and while ISO 3166 may be some sort of standard - it is not the data anyone would use for UK addressing inside any business application. In fact, the only other application (in my 30 years working in IT) where I've seen this used is WHMCS - so it looks like you may have copied this from them. Bad idea because it is fundamentally wrong to use this data. Some of the most common counties do not exist within this data and this will prevent many users from being able to enter their correct addresses. While it is certainly informative information and lists all the principalities in the country, it just doesn't work for street/town/county addressing and I don't believe this data was ever meant to be used for domestic addressing within a commercial setting. That's probablywhy nobody else does it this way.
Anyway, I'm not going to go on about it. I've made my point. You've obviously chosen this way under bad advice and are unlikely to change it now - however, I cannot use this software unless I can make changes to this list within the application. I'm not going to subject my customers to this infuriating inconvenience. It was simple within WHMCS to change the list, so I'm hoping it is just as simple in Blesta.
1. I can see that the data is held within the following directory...
vendors/respect/validation/library/Rules/SubdivisionCode
2. The files have some sort of validation but I'm not sure if this means there will be an error if a file is changed.
3. I'm assuming the data is being pulled out of these files directly, rather than from the database.
My first question ... can I simply edit the GbSubdivisionCode.php file to replace the data with my own? I understand this would need to be changed upon every update.
Secondly, are the three letter codes in those files used within Blesta for anything - or are they simply ignored?
Thirdly, is there a better way to hack this with a hook or some javascript?
Question
DDChris
Hello Blesta, I just signed up for a 30 day trial and I've hit an immediate problem.
It looks like you have chosen to use the ISO 3166 data for addressing, which is wholly inappropriate for any type of online billing system.
In the UK we use addressing in the form of Street Address -- Town / City -- County -- Postcode
ISO 3166 does not conform to this - and while ISO 3166 may be some sort of standard - it is not the data anyone would use for UK addressing inside any business application. In fact, the only other application (in my 30 years working in IT) where I've seen this used is WHMCS - so it looks like you may have copied this from them. Bad idea because it is fundamentally wrong to use this data. Some of the most common counties do not exist within this data and this will prevent many users from being able to enter their correct addresses. While it is certainly informative information and lists all the principalities in the country, it just doesn't work for street/town/county addressing and I don't believe this data was ever meant to be used for domestic addressing within a commercial setting. That's probably why nobody else does it this way.
Anyway, I'm not going to go on about it. I've made my point. You've obviously chosen this way under bad advice and are unlikely to change it now - however, I cannot use this software unless I can make changes to this list within the application. I'm not going to subject my customers to this infuriating inconvenience. It was simple within WHMCS to change the list, so I'm hoping it is just as simple in Blesta.
1. I can see that the data is held within the following directory...
vendors/respect/validation/library/Rules/SubdivisionCode
2. The files have some sort of validation but I'm not sure if this means there will be an error if a file is changed.
3. I'm assuming the data is being pulled out of these files directly, rather than from the database.
My first question ... can I simply edit the GbSubdivisionCode.php file to replace the data with my own? I understand this would need to be changed upon every update.
Secondly, are the three letter codes in those files used within Blesta for anything - or are they simply ignored?
Thirdly, is there a better way to hack this with a hook or some javascript?
Thank you for your time!
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.