Map Location of Seller

Report issues with Enuuk Auction Platform or Mods here - remember to raise a ticket with phpauction.net as well
Post Reply
RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Map Location of Seller

Post by RWAP » Wed Nov 15, 2017 9:44 am

Enuuk stores the latitude and longitude of the seller in case you have enabled the map view on the offer details page.

However, if the seller updates their address, the stored latitude and longitude never get updated.

To overcome this, in class\Action\User.php, in public function edit() find:

Code: Select all

                if (strlen($par['password'])>1) {
                    $user->password = $par['password'];
                }
                $user->saveToDB($this->db);
Change this to:

Code: Select all

                if (strlen($par['password'])>1) {
                    $user->password = $par['password'];
                }
                $user->lat = 0; // Reset the location settings for the map
                $user->saveToDB($this->db);

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest