*

Ivanko

  • *****
  • 388 posts
If user like to change the location when edit the ad the location on map remains the same, same when the ad was posted at first time.

Is it normal ? or something I had missed..?
I checked DB and on item_location the  table for coordinates updated properly (google map), but in plugin table (radius plugin) nothing...

what could be done.....
« Last Edit: November 20, 2017, 09:27:08 AM by Ivanko »

*

MB Themes

Re: The location on map is not updating after the location was edited.
« Reply #1 on: November 20, 2017, 11:46:38 AM »
@Ivanko
It sounds like a bug, but I've checked code and it should work on updating of item as well. Have you update location to change city or just minor update?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • *****
  • 388 posts
Re: The location on map is not updating after the location was edited.
« Reply #2 on: November 20, 2017, 11:57:07 AM »
I have tested on my site with custom location, then retested on clean OS with default US location.

I can see in code the hook :
osc_add_hook('edited_item', 'radius_item_add_edit_post');
but still not updating...

*

Ivanko

  • *****
  • 388 posts
Re: The location on map is not updating after the location was edited.
« Reply #3 on: November 21, 2017, 02:18:19 AM »
Hi boos what is your suggestion ? did u check this bug?
I have a wee problem, I am panning to integrate this plugin in main page , but with this issue... it will be a a wee problem)
Please check from your side, when u have a time, and post your solution )
Anyway, I  love your jobs ) really nice  )

*

MB Themes

Re: The location on map is not updating after the location was edited.
« Reply #4 on: November 21, 2017, 11:37:09 AM »
I would like to do deeper test today, will let you know.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: The location on map is not updating after the location was edited.
« Reply #5 on: November 27, 2017, 03:40:33 PM »
@Ivanko
I found just 1 bug.
Go to file:
oc-content/plugins/rad_search/index.php

Find line:
Code: [Select]
  $url = 'https://maps.google.com/maps/api/geocode/json?address=' . $address . '&sensor=false';

Replace with:
Code: [Select]
  $url = 'https://maps.google.com/maps/api/geocode/json?address=' . $address . '&sensor=false&key=' . osc_get_preference('api_key', 'plugin-rad_search');
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • *****
  • 388 posts
Re: The location on map is not updating after the location was edited.
« Reply #6 on: November 28, 2017, 01:44:24 AM »
ok thanks Ill check, thanks:)