osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Google Delivery Directions & Map

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-15-2008, 05:10 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Google Delivery Directions & Map

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 04:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax