WOOCS - WooCommerce Currency Switcher

How to use Memcached or Redis as currency storage

From v.2.3.4/1.3.4 go to tab ‘Options’ in ‘Currency aggregator’ select ‘Memcached’ or ‘Redis’ set the option ‘Storage server’, usually it is ‘localhost’ BUT different hosting companies has different options, and maybe socket is possible only, ask your hosting support or read hosting documentation set the option ‘Storage port’, usually foe Memcached port is 11211 and […]

Hide trailing zeros on prices

In file functions.php file add next code:


How to display on woocommerce checkout page payment gate info

If you need to show to your customer any special info on the checkout page when they select method of paying you can use next custom script:

Drop the script into file functions.php of your current wp theme Replace in the script CSS class ‘your_css_class_here’ to any other you need, create your own Write […]

Using REST API with woocommerce currency switcher

From plugin version 2.2.9/1.2.9 appeared possibility to use in-built REST request to get site currencies data: wp-json/woocs/v3/currency Also WOOCS allows using its API create any custom REST requests, as an example below which allows to get all shop products prices in all its currencies (wp-json/woocs/v3/products/gbp): (add next code into the file functions.php of the current […]

How to reset page cache in the browser

press CTRL+R CTRL+F5 Ctrl+Shift+R Apple + R or command + R (apple) in Chrome browser the best way is: Open the developer tools: Ctrl + Shift + I Now, leaving the panel open, left click on the “Update” button (next to the address line) and do not release the button. After a few seconds, you […]

Where to get flags for free

https://www.free-country-flags.com/index.php https://www.iconfinder.com/flag-icons?price=free https://www.flaticon.com/free-icons/flag_469 http://www.sciencekids.co.nz/pictures/flags.html Hint: sometimes you can download all flags from the page, for example from here https://www.iconfinder.com/iconsets/flags_gosquared by saving loaded web page! Load the page in the browser -> press CTRL+S (win) -> find folder with saved elements of the web page and take flags images from there.  

Where to find what currency was used for payment in database

Original: https://wordpress.org/support/topic/where-to-find-what-currency-was-used-for-payment-in-database DB Table: wp_postmeta Key: _order_currency Code:


How to disallow any currency for any country

Request from the customer: Basically, add a column to the existing table, with a dropdown that shows “all countries” by default OR “selected countries” comma delimited this way, I can accept Euro only in Euro countries and USD in others. This will affect the currency dropdown – in case that the current GEO supports one currency, […]

World Currency Symbols

Just for information – http://www.xe.com/symbols.php – here you can find currency symbols for your store currencies