bdfoto_bd-shop Posted July 23, 2012 Share Posted July 23, 2012 Prestashop only allows for three-digit international dialling codes. Many have four digits. How do I change the field size from three to four digits please? Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 23, 2012 Author Share Posted July 23, 2012 The field call_prefix has a field length of 10 in the database but only allows three figures to be displayed. The problem therefore seems to be internal to the Prestashop back office limitations. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 23, 2012 Share Posted July 23, 2012 Hi bdfoto, Can you please post a direct link on your site to where you are trying to display this? I'd be happy to try to look into this for you. -Mike Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 23, 2012 Author Share Posted July 23, 2012 Hi Mike This is within the admin page behind my admin username and password. All the countries in the Caribbean have a dialling code 1nnn. [LINK REMOVED] Thank you Barney Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 23, 2012 Share Posted July 23, 2012 Hi Barney, Please never post private information like your login URL on the PrestaShop forums. Per the rules of the PrestaShop forums, I also cannot make any connection to your Back Office or other private information without a signed contract. If the issue is in the Back Office, please post a screenshot of the page. If it's also in the Front Office, please post a direct link as an example. -Mike Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 23, 2012 Author Share Posted July 23, 2012 Screen shot. All the Caribbean countries have four digit dialling codes starting 1 then three digits identifying the country. I give Anguilla (the first alphabetically) as an example in this screen shot, which should be 1264 There isn't an issue with the functionality of the back office, just a too-short field Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 23, 2012 Share Posted July 23, 2012 Hi bdfoto, In your admin/tabs/AdminCountries file, look for the following code around line 245 (in v1.4.8.2; might vary a little depending on your version number) <input type="text" size="4" maxlength="3" name="call_prefix" value="'.(int)($this->getFieldValue($obj, 'call_prefix')).'" style="text-transform: uppercase;" /> <sup>*</sup> Just change "maxlength" to 4, and that should resolve this for you. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 23, 2012 Author Share Posted July 23, 2012 Thank you Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 23, 2012 Share Posted July 23, 2012 I'm glad I could help! I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 23, 2012 Author Share Posted July 23, 2012 Hi Mike Thank you again. I've done it and it worked. Perhaps this is one for the developers? ... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 23, 2012 Share Posted July 23, 2012 Hi Mike Thank you again. I've done it and it worked. Perhaps this is one for the developers? ... Don't worry, I will report this to them so that we have a note of it for future releases . -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 24, 2012 Share Posted July 24, 2012 Hi bdfoto, Just to update you on this, we have implemented this change in the code and will be committing it to the SVN later today so that it will be implemented in all future releases of PrestaShop. Thanks again for bringing this to our attention! -Mike Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 24, 2012 Author Share Posted July 24, 2012 Hi Mike I have just spent several hours updating the phone number prefix list world wide. Would you like a copy of it for the next release? Barney Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 24, 2012 Share Posted July 24, 2012 Hi Mike I have just spent several hours updating the phone number prefix list world wide. Would you like a copy of it for the next release? Barney Absolutely, go ahead and send it to me and I'll be happy to pass it along to our development team. -Mike Link to comment Share on other sites More sharing options...
bdfoto_bd-shop Posted July 24, 2012 Author Share Posted July 24, 2012 Absolutely, go ahead and send it to me and I'll be happy to pass it along to our development team. -Mike Will do. All I need to know is which file to send and where to please. Please remember I am a PHP Luddite. Barney Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 24, 2012 Share Posted July 24, 2012 Will do. All I need to know is which file to send and where to please. Please remember I am a PHP Luddite. Barney Just email it to me at the address listed on my profile, and I will make sure it gets into the right hands. -Mike Link to comment Share on other sites More sharing options...
Recommended Posts