I hereby claim:
- I am ndeet on github.
- I am ndeet (https://keybase.io/ndeet) on keybase.
- I have a public key ASC_PczXd53EPNCRXoo1MtcNZsCfZ6w7CzcdCW5VMauCogo
To claim this, I am signing this object:
; Register Style Plugin directory | |
plugins[panels][styles] = panels/styles |
uuid: 7074647f-9a97-4aba-a672-3e60beac3f3a | |
langcode: en | |
status: true | |
dependencies: | |
module: | |
- address | |
- commerce_order | |
- profile | |
- user | |
id: orderadress |
I hereby claim:
To claim this, I am signing this object:
Tested on Ubuntu 20.04 minimal install
Preparation: Setup a VPS and not down the IP 21.21.21.21 (replace with real IP) Add a subdomain and map it to the VPS IP via an A-Record to 21.21.21.21
Replace btcpay.yourdomain.tld with your actual subdomain.
SSH into your VPS and follow the steps:
IMPORTANT: these changes will get wiped and overwritten with each BTCPay for WooCommerce plugin update and the proper way to fix this would be that your server (or your hosting provider) updates to a more recent OpenSSL version.
go to the plugins dircetory e.g. wp-content/plugins/btcpay-for-woocommerce
there find the certificate bundle in the library and open it:
nano lib/Bitpay/Client/Adapter/ca-bundle.crt
// Assumption is that you fetch the correct Bitcoin exchange rates for the currency code ($currencyCode) "BTC". | |
// Adjust accordingly in the code below if you use a different one. | |
// On WOOCS settings you can add a custom symbol for "Sats" and display it accordingly. | |
// Use WOOCS currency data manipulation filter to adjust rate and decimals. | |
add_filter('woocs_currency_data_manipulation', 'my_woocs_currency_data_manipulation', 1, 1); | |
function my_woocs_currency_data_manipulation($currencies) |
This is a way to Sats prices on your WooCommerce (WC) store products by using BTC (Bitcoin) currency that gets shipped with WC. It does still show BTC on checkout pages and on the backend.
So internally WC will use BTC and you need to enter amounts in BTC, e.g. 0.00002100 but on the frontend for product pages it will show 2100 Sats
Navigate to WC settings: WooCommerce -> Settings -> General (tab): "Currency options"
Currency: select Bitcoin (B)
Currency position: select Right with space
Thousand separator: enter what you prefer ,
,
or .
or sth else