dustcollector Posted July 17, 2012 Share Posted July 17, 2012 Hi everyone! I would like to show my website and pricing to another country for example USA, and visitors from USA will be automatically shown the exclusive pricing. My default currency is in pounds. I tested the website and !lthough i'm located in the USA, it is still unable to detect that im from USA, and still showing me the wrong prices. I have to click on "US Dollars" before it show me the prices. Is there any ways that visitors from USA, will be automatically detected and will show them the exclusive pricing?? Thank you! Link to comment Share on other sites More sharing options...
Andrei_BelVG Posted July 18, 2012 Share Posted July 18, 2012 Hi there, You should follow up the operation of Product::getPriceStatic() function. For price to be changed automatically depending on visitor’s access country, try as follows: 1) Set up the pricing policy in your back office in “Prices” tab; 2) Determine user’s required country data in $cookie->id_country; address is the only standard possibility to identify the country. However you can inherit this class and redefine this function’s behavior, identifying the country via IP. IP addresses database can be easily found on the internet. Regards Link to comment Share on other sites More sharing options...
dustcollector Posted July 18, 2012 Author Share Posted July 18, 2012 Hi there, You should follow up the operation of Product::getPriceStatic() function. For price to be changed automatically depending on visitor’s access country, try as follows: 1) Set up the pricing policy in your back office in “Prices” tab; 2) Determine user’s required country data in $cookie->id_country; address is the only standard possibility to identify the country. However you can inherit this class and redefine this function’s behavior, identifying the country via IP. IP addresses database can be easily found on the internet. Regards Hi Andrei, Thanks for your help here! But it's really too advance for me to take it! I'm not a trained programmer. Where do i insert "Product::getPriceStatic() function"? Pricing policies under "Prices" in back office has already been set. Thanks again!! Link to comment Share on other sites More sharing options...
Andrei_BelVG Posted July 20, 2012 Share Posted July 20, 2012 Hi, Well, all you have to do is to create the Product extend ProductCore class and to put it in the override/classes/Product.php folder. After that implement getPriceStatic() function with your custom logic. Regards Link to comment Share on other sites More sharing options...
ZeroDay Posted August 21, 2012 Share Posted August 21, 2012 (edited) . Edited October 21, 2012 by ZeroDay (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 13, 2012 Share Posted September 13, 2012 (edited) The problem is that non-logged in customers are set to your PrestaShop default country. We have released our module to support specific prices,shipping,taxes etc for logged and non logged customers. Forum Thread Module Home We hope you like our work. Edited September 13, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now