This is a discussion on Google Delivery Directions & Map within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Hi there are no changes in the zip i am uploading only this text you are reading. Change the Store ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Hi there are no changes in the zip i am uploading only this text you are reading. Change the Store Address and API Key to be called from the database. Here is the code changes to do it: in google_map.php around line 36 change to this: $storeAddress = GOOGLE_STORE_STREET_ADDRESS . ' ' . GOOGLE_STORE_CITY . ' ' . GOOGLE_STORE_STATE . ' ' . GOOGLE_STORE_POSTCODE . ' ' . GOOGLE_STORE_COUNTRY; and around line 45 change the script call with the api key string to this: then run these sql commands from phpmyadmin: INSERT INTO configuration VALUES ('', 'Google API Key', 'GOOGLE_MAP_API_KEY', 'Your Google Maps API Key', 'Enter your Google Maps API Key. If you dont have one you can sign up for one free Google Maps API', 449, 2, NULL, now(), NULL, NULL); INSERT INTO configuration VALUES ('', 'Store Street Address - Used by Google Maps', 'GOOGLE_STORE_STREET_ADDRESS', '111 Any St', 'The street address of my store', 449, 3, NULL, now(), NULL, NULL); INSERT INTO configuration VALUES ('', 'Store City - Used by Google Maps', 'GOOGLE_STORE_CITY', 'Anytown', 'The city my store is located in', 449, 4, NULL, now(), NULL, NULL); INSERT INTO configuration VALUES ('', 'Store State - Used by Google Maps', 'GOOGLE_STORE_STATE', 'Anystate', 'The state my store is located in', 449, 5, NULL, now(), NULL, NULL); INSERT INTO configuration VALUES ('', 'Store Postal Code - Used by Google Maps', 'GOOGLE_STORE_POSTCODE', '11111', 'The postal zip code of my store', 449, 6, NULL, now(), NULL, NULL); INSERT INTO configuration VALUES ('', 'Store Country - Used by Google Maps', 'GOOGLE_STORE_COUNTRY', 'United States', 'The country my store is located in', 449, 7, NULL, now(), NULL, NULL); More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Local Delivery Option | michael_s | New osCommerce Contributions | 0 | 01-12-2008 06:31 PM |
| Pin Delivery Module | michael_s | New osCommerce Contributions | 0 | 10-30-2007 08:00 PM |
| Google Delivery Directions & Map | michael_s | New osCommerce Contributions | 0 | 10-02-2007 06:21 PM |
| Delivery TimeTable | michael_s | New osCommerce Contributions | 0 | 04-13-2007 03:07 AM |
| Delivery Address | lesmith | osCommerce 2.2 Modification Help | 1 | 02-11-2004 08:21 AM |