title: Woocommerce - Product price depending on country
body: <p>I have 2 questions regarding Woocommerce for Wordpress.</p>
  
  <p>I'm working on a site that sells speakers to the Danish market. </p>
  
  <p><strong>Question one:</strong></p>
  
  <p>Can I detect the IP of a visitor and detect which country the person is from? I guess this can be done with some ClientLocation api. </p>
  
  <p>Can I then disable all shopping relatet pages and buttons if a person is not from Denmark. Fx: hiding the add to cart, cart and checkout. 
  I still want the persons to be able to see the prices, they should just not have the option to buy them. </p>
  
  <p><strong>Question 2:</strong></p>
  
  <p>Lets say that question one was sucessfull made. Then I would like to show different prices for other contries than Denmark. So if you are visiting the site from one country, the price is XXX and from another country the price is XXXX.<br>
  Let's say:</p>
  
  <pre><code>In USA the price is = $500 
  And in UK the price = £400
  </code></pre>
  
  <p>(This has nothing to do with currency. The market price is just different in different countries.)</p>
  
  <p>I've looked at this plugin: <a href="http://wordpress.org/plugins/woocomerce-price-by-country/" rel="nofollow">http://wordpress.org/plugins/woocomerce-price-by-country/</a>
  It allowed me to write different prices for each product, but when I testet it with <a href="http://geopeeker.com/" rel="nofollow">http://geopeeker.com/</a> I hadn't worked at all. </p>
  
  <p>Can you give me some pointets or some links to some plugins that you know of?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I managed to solve question 1. I store the visitors country in a cookie with <a href="http://ipinfodb.com/ip_location_api.php" rel="nofollow">IP location XML API</a> And then I could just create an if statement, saying that if the country was not equal to Denmark, then the add to cart, cart etc. should be removed. </p>
  
  <p>So yeah, I would really appreciate it if anyknow could give me an idea on how I can solve question 2. </p>
  
  <p>I'm able to detect country, but not able to specify a price of each product to the given country. </p>
  
  <p><strong>2'nd update:</strong> </p>
  
  <p>Just to let any interested readers know, I ended up buying <a href="http://aelia.co/shop/currency-switcher-woocommerce/" rel="nofollow">this plugin.</a> which is working perfectly!</p>