Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a joomla web site in localhost
in this website i used from cmgroupbuying component
But this dont show map
thats nead api google key and i don know how too add api google key intoo that
please help me

What I have tried:

I Copy my api key into files
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyB4lkyWjGnEX85HvYtEoMe423kXx77HC1o&sensor=true"></script>
Posted
Comments
[no name] 31-Aug-16 23:41pm    
Go to the component owner directly: https://www.cmext.vn/forum/index

1 solution

go to cmGroupBuying configuration > general and add google API Key to his field.

you may have problem whit Deal Map menu. for solving this must go to this path :
public_html/components/com_cmgroupbuying/layouts/dailydeal_groupon/dealmap.php
and add this in top of doc in below of defined('_JEXEC') or die; :
PHP
$configuration = $this->configuration;

and than edit this in line 20 :
JavaScript
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>

to this :
JavaScript
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=<?php echo $configuration['google_maps_api_key']; ?>&sensor=false"></script>


remember that u must go to cmGroupBuying configuration > Layout and set Deal map latitude and Deal map longitude on your city or country correctly.
also go to Categories of cmGroupButing and set map pointer image to Deal map icon
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900