bertismus Posted April 26, 2013 Share Posted April 26, 2013 Hi All, I installed prestashop 1.5.4 and have an issue with the store locator in the backoffice. Overall it's a great feature, but when I enter a store longitude with 3 digits before the decimal, it automatically adds an extradigit to the end and says I have too many digits in the longitude. For example: This works: Lat: 40.75368500 Long: -73.99916400 This does not work Lat: 47.60621 Long: -122.332071 Both are legitimate Lat and Long numbers, but the one with long -122.33.... is not being accepted. I was wondering if anyone has this issue and knows how to overcome it. Thanks in advance for all your help! Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted April 26, 2013 Share Posted April 26, 2013 Hi, Please, check the code of AdminStores contoroller and Store class. Best regards. Link to comment Share on other sites More sharing options...
bertismus Posted May 2, 2013 Author Share Posted May 2, 2013 Hi Thank you so much for the reply and apologies for taking a while to ask this. It appears the AdminStoresController file is a php and Im a bit of a novice in that one. Could you please send me an image of what to adjust or tell me which line/s I need to adjust and to what. Thank you again for your help! Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted May 5, 2013 Share Posted May 5, 2013 Hi, bertismus, change validate size param in Store class http://clip2net.com/clip/m0/1367739525-clip-44kb.png ... 'latitude' => array('type' => self::TYPE_FLOAT, 'validate' => 'isCoordinate', 'size' => 16), 'longitude' => array('type' => self::TYPE_FLOAT, 'validate' => 'isCoordinate', 'size' => 16), ... Regards 1 Link to comment Share on other sites More sharing options...
bertismus Posted May 6, 2013 Author Share Posted May 6, 2013 (edited) Looks like that did it! Alexander and Velerie, thank you both so much! Edited May 6, 2013 by bertismus (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts