Content of the page

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… read more

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… read more

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… read more

Where to get flags for free Hint: sometimes you can download all flags from the page, for example from here 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: 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,… read more

World Currency Symbols

Just for information – – here you can find currency symbols for your store currencies  

How to use WOOCS API

Sometimes site admins wants to wide the logic of currencies behavior on their site, or simply get any data using WOOCS functionality. In such way WOOCS API can be used for it as it have heap of tools which can help you with idea related to the site behavior/logic. Next code is just a primitive example which… read more