Home Support General HivePress Geolocation | front end phone no showing as xxx,xxx,xxx – attribute

Geolocation | front end phone no showing as xxx,xxx,xxx – attribute

  • Author
    Posts
  • nigel@digital.wales

    Hi,

    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?

    Cheers

    Nigel

    ihor developer

    Hi,

    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.

    nigel@digital.wales

    Hi,

    Its already set as text in the attribute area.

    Thanks

    ihor developer

    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 ) ) );

    ihor developer

    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.

    ihor developer

    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.

    nigel@digital.wales

    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.

    nigel@digital.wales

    Hi,
    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.
    Thanks

    ihor developer

    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 support@hivepress.io and I’ll check it.

    nigel@digital.wales

    Hi,

    Temporary wp access for restaurants.wales sent by email.

    Thanks

    nigel@digital.wales

    The email i sent bounced back to my account saying undelivered

    ihor developer

    Please try sending it to ihor@hivepress.io

    nigel@digital.wales

    sent to new email

    nigel@digital.wales

    Hi, i found an old api and the maps look as though they are working now. Will have a further look at these issues.

    ihor developer

    Ok, please let me know if you find any other issues.

    ihor developer

    Number formatting and attribute issues are fixed in the latest version, so closing this topic.

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Geolocation | front end phone no showing as xxx,xxx,xxx – attribute’ is closed to new replies.