Geolocation | front end phone no showing as xxx,xxx,xxx – attribute
Superb theme and plugins !
Have been looking for something like this for a few years.
Problem with G maps showing on some of my listings, I know api key is working.
When i add an attribute for Phone No. It shows as a number on the front end eg: xxx,xxx,xxx but shows as a phone number on the backend,
My website is Restaurants.wales
Hope you can help?
Thanks, glad you like it!
I plan to add a separate “Phone” attribute, that will accept the country code and other symbols acceptable in the phone numbers, please use a text attribute until then. Currently any numeric attribute is treated as a number, because there’s no way to check if it’s a phone number or a price.
Its already set as text in the attribute area.
Ah, so it’s impossible to set any numeric value without a thousand separator. I’ll fix this in a few days, if it’s urgent please remove line 223 from hivepress/includes/models/class-listing.php file:
$field_value = number_format_i18n( $field_value, strlen( substr( strrchr( (string) $field_value, '.' ), 1 ) ) );
Please make sure that you select location from the drop-down list that Google suggests, only in this case latitude/longitude of a place are set correctly.
It seems that it’s a HTTPS issue, Google returns the following error:
Deprecation] getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
Please check if your hosting provider offers switching your site to HTTPS.
Thanks, I’ve taken out the line of code and will wait for the update.
I’m just adding a ssl to the website.
Will comment once ssl generated.
This is a great script.
So ssl is added, maps still not working except for first listing i created. This was created before the update.
Maps stopped working after update.
Please make sure that both HivePress and HivePress Geolocation were updated, I just tried to add a test listing on the live demo and it worked https://www.screencast.com/t/qKSsMj0IS If it’s possible to reproduce this issue you can send temporary WP access to firstname.lastname@example.org and I’ll check it.
Temporary wp access for restaurants.wales sent by email.
The email i sent bounced back to my account saying undelivered
sent to new email
Hi, i found an old api and the maps look as though they are working now. Will have a further look at these issues.
Ok, please let me know if you find any other issues.
Number formatting and attribute issues are fixed in the latest version, so closing this topic.
The topic ‘Geolocation | front end phone no showing as xxx,xxx,xxx – attribute’ is closed to new replies.