In a WooCommerce website, we aim to display the product prices in satoshi/bitcoin based on the current market value. Ideally we don't want to use any existing plugin and we are looking to get the updated market value from Coingecko or any other free API.

There's an easy way to do it? Maybe with a script to be added in the child-theme/functions.php?


1 Answer 1


We ended up building Bitcoin Price Converter, a plugin for WordPress and compatible with WooCommerce

Converts WooCommerce product prices to Bitcoin using exchange rates.

  • Custom settings available from the admin sidebar menu Woocommerce > Bitcoin Converter .
  • Select your preferred denomination (BTC, mBTC, sats)
  • Select to display fiat price, Bitcoin price or both
  • Select API price source between CoinGecko, Coindesk or your custom source

For more info:

Repo on GitHub

Demo web site

Donate on Geyser


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.