Rhoel Asia Posted November 29, 2010 Share Posted November 29, 2010 Hi folks, new to the forum and to PrestaShop. I work as a web developer and a client pointed me at the site as they want to use it as a replacement to a commercial cart they have but found too limiting.Most of their questions have been answered, bar one. They might need to restrict product sales to US or Europe. I'll use the example of a film props company who for legal reasons can only sell replica guns to the US but not the UK where it would be a criminal offense. Can PrestaShop be configured to sell items to certain areas, or specifically to prevent sales to one country. Effectively, what is required is a white list or blacklist of countries, on a product by product basis. In the film props company example, they are allowed to sell swords, period costume and other items to the UK but not firearms.Can this be done.If not, is there a place where I can flag this up for future development?TIA.Rhoel Link to comment Share on other sites More sharing options...
rocky Posted November 30, 2010 Share Posted November 30, 2010 Yes, PrestaShop v1.4 has this feature. It lets you hide the "Add to cart" buttons or block the website completely for certain countries. It doesn't let you do it on a per-product basis though. Link to comment Share on other sites More sharing options...
akboselk Posted March 21, 2011 Share Posted March 21, 2011 hiit is great to see such a feature with PS 1.4, which I currently using.But I try to find how to restrict some products for few countries. Unfortunately I failedCould you please guide me how to do this ?Thanks Link to comment Share on other sites More sharing options...
rocky Posted March 22, 2011 Share Posted March 22, 2011 As mentioned in my previous post, PrestaShop doesn't have that option. It only lets you disable the "Add to cart" option for a specific country, or disable the entire shop for a specific country. It doesn't let you disable a product for a specific country, though it does let you specify a different price for each country.The only solution I can think of is to hack PrestaShop's code. You could set the specific price of the product for the country to $0 or $1,000,000 or some value a product would never have, then add code to hide the "Add to cart" button when that price is encountered. You'd have to change it in a lot of places though. 1 Link to comment Share on other sites More sharing options...
akboselk Posted March 22, 2011 Share Posted March 22, 2011 dear rocky"though it does let you specify a different price for each country."Ok this is fine for me. Please let me know (or guide to any usefull post) Hoe can I do it on PS 1.4 ?Thanks Link to comment Share on other sites More sharing options...
rocky Posted March 22, 2011 Share Posted March 22, 2011 Edit the product, then go to the "3. Prices" tab, click "Add a new specific price", choose the country you want to override the price for, enter the "Product price (excl. tax)", then click "Add". Do this for each product you want to specify a different price for. Link to comment Share on other sites More sharing options...
aiteampl Posted January 20, 2012 Share Posted January 20, 2012 did anything changed in that matter? i need to restrict a product or a group of products from my clients from us? any other ideas? maybe automatic group when register with no rights to view the category ? anything? Link to comment Share on other sites More sharing options...
aiteampl Posted January 23, 2012 Share Posted January 23, 2012 bump Link to comment Share on other sites More sharing options...
doigro Posted December 3, 2012 Share Posted December 3, 2012 up Link to comment Share on other sites More sharing options...
shgavman Posted January 15, 2013 Share Posted January 15, 2013 As mentioned in my previous post, PrestaShop doesn't have that option. It only lets you disable the "Add to cart" option for a specific country, or disable the entire shop for a specific country. It doesn't let you disable a product for a specific country, though it does let you specify a different price for each country. The only solution I can think of is to hack PrestaShop's code. You could set the specific price of the product for the country to $0 or $1,000,000 or some value a product would never have, then add code to hide the "Add to cart" button when that price is encountered. You'd have to change it in a lot of places though. This sounds like a good workaround Rocky - do you think you could give a little info on the code to be added to hide the "Add to Cart" button? I'm guessing it's with the product.tpl but maybe you could give some insight. 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