Yes listing currencies would look much neater! Anyone know how to do this?
Cheers
@bindebale, where would you like to list the currencies?
For now, I’ve got list of countries in the footer, next to country selector. I would like to have both country and currency selectors in the same column. Currencies would be much better, because instead of listing all eurozone countries, it could show Euro only.
It looks like the plugin currently shows the currency based on the users geolocate determined country.
You are asking how to add a currency switch that allows the user to choose currency rather than it be set automatically?
Yes, geolocalization is great, but when it comes to changing currency, I would like the list/switcher to show differece curriencies instead of countries.
Does this help?
Customize country selector (only for developers)
Add action wcpbc_manual_country_selector to your theme.
To customize the country selector:
- Create a directory named “woocommerce-product-price-based-on-countries” in your theme directory.
- Copy to the directory created above the file “country-selector.php” included in the plugin.
Work with this file.
from:
https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/installation/
Hi,
I don’t know how to add it π
Just a drop down that has the available currencies instead of a list of countries really.
Ok drop this directory into your theme folder:
https://www.dropbox.com/sh/52es9o34xnirp2c/AADyhLVnEk2BqXB_IxPstTpEa?dl=0
YOURSITE.com/wp-content/themes/YOURTHEME/woocommerce-product-price-based-on-countries/country-selector.php
It is probably not the cleanest solution but it will achieve what you are asking for, without modifying the plugins core files.
Any update to this workaround? Seems this solution donΒ΄t work anymore! Thanks!