To be a step ahead of your competitors it is pretty important to keep an eye on the latest design trends and apply only the best solutions for developing your own web-store. So, if you are thinking about creating a new online-store or redesigning your current web-shop you may find this article pretty useful for yourself.
Some users encounter the issue with Prestashop 1.5 store locator feature. If a store longitude with 3 digits before the decimal is entered, the algorithm automatically adds an extra digit to the end and the message emerges that there are too many digits in the longitude. A few simple moves will resolve this issue.
For example, a store has the following coordinates:
This combination will work. The following one, however, may fail:
-152.332071 may not be accepted, although it is a legitimate longitude.
To resolve this issue, change the ‘validate’ ‘size’ parameter in the Store class:
'latitude' => array('type' => self::TYPE_FLOAT, 'validate' => 'isCoordinate', 'size' => 16),
'longitude' => array('type' => self::TYPE_FLOAT, 'validate' => 'isCoordinate', 'size' => 16),