Not getting Country name by geo locationHow to get Store logo and image alt in magentohow to display product...

Why did other German political parties disband so fast when Hitler was appointed chancellor?

Publishing research using outdated methods

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

How can I deliver in-universe written lore to players without it being dry exposition?

Advice for a new journal editor

Why do stocks necessarily drop during a recession?

How to say "Brexit" in Latin?

Cookies - Should the toggles be on?

Why is working on the same position for more than 15 years not a red flag?

Would a National Army of mercenaries be a feasible idea?

CREATE ASSEMBLY System.DirectoryServices.AccountManagement.dll without enabling TRUSTWORTHY

Could a phylactery of a lich be a mirror or does it have to be a box?

What is the lore-based reason that the Spectator has the Create Food and Water trait, instead of simply not requiring food and water?

If I delete my router's history can my ISP still provide it to my parents?

Can a hotel cancel a confirmed reservation?

How to prevent users from executing commands through browser URL

Finding a mistake using Mayer-Vietoris

Pronunciation of umlaut vowels in the history of German

Why would space fleets be aligned?

Explain the objections to these measures against human trafficking

Avoiding morning and evening handshakes

How can I get my players to come to the game session after agreeing to a date?

How to prevent cleaner from hanging my lock screen in Ubuntu 16.04

Word or phrase for showing great skill at something WITHOUT formal training in it



Not getting Country name by geo location


How to get Store logo and image alt in magentohow to display product with category name on cms page in magentoMagento, Override local controller with other local controllerMagento is not running my install scripthow to give store url for phtml pagesNot Saving image correctly - $_FILES OR $_GETHow to add a flag icon to Country of Manufacture attributeGeo Ip for Magento SiteCheckout not loading next stepProgrammatically generated forgot password link showing expired













0















I am trying to get country name by Geo-location. so i used Geo plugin but not working good. its show all good by browser url. but when i am trying to set response by php its not return anything.



I don't know what is issue with my code.




require_once('geoplugin.class.php');




 $geoplugin = new geoPlugin();
$geoplugin->locate();
if($geoplugin->countryCode){
$_SESSION['cCode'] = $geoplugin->countryCode;
}else{
$_SESSION['cCode'] = "US";
}









share|improve this question





























    0















    I am trying to get country name by Geo-location. so i used Geo plugin but not working good. its show all good by browser url. but when i am trying to set response by php its not return anything.



    I don't know what is issue with my code.




    require_once('geoplugin.class.php');




     $geoplugin = new geoPlugin();
    $geoplugin->locate();
    if($geoplugin->countryCode){
    $_SESSION['cCode'] = $geoplugin->countryCode;
    }else{
    $_SESSION['cCode'] = "US";
    }









    share|improve this question



























      0












      0








      0








      I am trying to get country name by Geo-location. so i used Geo plugin but not working good. its show all good by browser url. but when i am trying to set response by php its not return anything.



      I don't know what is issue with my code.




      require_once('geoplugin.class.php');




       $geoplugin = new geoPlugin();
      $geoplugin->locate();
      if($geoplugin->countryCode){
      $_SESSION['cCode'] = $geoplugin->countryCode;
      }else{
      $_SESSION['cCode'] = "US";
      }









      share|improve this question
















      I am trying to get country name by Geo-location. so i used Geo plugin but not working good. its show all good by browser url. but when i am trying to set response by php its not return anything.



      I don't know what is issue with my code.




      require_once('geoplugin.class.php');




       $geoplugin = new geoPlugin();
      $geoplugin->locate();
      if($geoplugin->countryCode){
      $_SESSION['cCode'] = $geoplugin->countryCode;
      }else{
      $_SESSION['cCode'] = "US";
      }






      magento-1.9 geoip






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 21 mins ago









      Rakesh Donga

      1,323316




      1,323316










      asked 40 mins ago









      Ajay PatelAjay Patel

      1,0141427




      1,0141427






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263946%2fnot-getting-country-name-by-geo-location%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263946%2fnot-getting-country-name-by-geo-location%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...