I am using WooCommerce for my online shop. I have my prices set in USD in the admin panel.
How can I display that price in Bitcoin for the front-end user?
I will make the script where it reads current Bitcoin value and convert that USD amount in BTC.
$backendPrice = 1000.00
$bitcoinPrice = 500.00
$displayPrice = 2
This series of filter hooks will do the job:
You can use GoUrl Bitcoin Gateway Plugin for WooCommerce.
It supports – “Set prices in USD/EUR/etc. in the admin panel and display that prices in Bitcoins for the front-end user”
https://wordpress.org/plugins/gourl-woocommerce-bitcoin-altcoin-payment-gateway-addon/