Home›Forums›Pre-Sales Questions›Compatible with any price based on country plugins?›Reply To: Compatible with any price based on country plugins?
Most likely, my plugins would not work with other plugins that are also changing prices. WooCommerce has filter hooks in place to allow prices to be modified as they are being retrieved, and it depends on whatever other plugin hooks into that last and is the last to modify the price, and that would be the price you see.
It could work with a plugin that uses an exchange rate and applies it to the price returned if it’s doing that after my plugin has already modified the price based on the user. My plugin works with WPML Multi-currency as well as the Aelia Currency Switcher plugins… I have compatibility code for both of those, although I haven’t tested with newer versions of Aelia (but none of my customers using it have reported any issues). Aelia is much simpler, as it doesn’t have anything to do with translation, just allows you to use multi-currencies. So, you could setup USD and CAD currencies. Then you could either have it do automatic conversion based on exchange rates OR you can enter the price for each currency manually… with my compatibility code, my plugins will create extra price fields for each currency (wholesale price USD, wholesale price CAD, as well as similar currency options for any other prices you create manually with User Role Pricing).
The other option is to use my User Role Pricing plugin to manually create prices for each currency, but that would only work if the user is logged in and you would have to assign the correct price to them based on their role (or you could also do it on an individual user basis), meaning their account would have to be created first and you would have to assign the proper role so that they get the correct prices. My plugin will NOT alter any retail prices if the user is not logged in (guest user), so you would need some other method to change the default pricing based on geolocation.
If you already have a specific plugin you are using to alter prices based on location, you can message me privately and send me a download link, and I could take a look at their code to see what it might take to build compatibility with it into my plugin (it would probably be similar to what I do for Aelia, which was actually quite a bit of work).