Using the Live Price Shortcode
How to use the [ashepay_prices] shortcode to display live crypto prices anywhere on your site.
AshePay includes a shortcode that displays live cryptocurrency prices on any page, post, or widget area on your site. This lets your customers see the current crypto equivalent of product prices before they reach checkout.
Basic usage
Add this shortcode to any page or post:
[ashepay_prices]
By default, this displays the current price of BTC, ETH, and SOL in your store's base currency.
[IMAGE: A product page with a small price widget below the main product price showing "≈ 0.00034 BTC · 0.0031 ETH · 0.41 SOL" with a small refresh timestamp]
Filtering which tokens to show
Use the tokens attribute to show only specific tokens:
[ashepay_prices tokens="eth,usdt,sol"]
Available token values: btc, eth, bnb, sol, pol, trx, usdt, usdc
Showing prices for a specific product amount
Use the amount attribute to show the crypto equivalent of a specific fiat amount:
[ashepay_prices amount="49.99"]
This is useful on product pages to show customers exactly how much crypto they would send for that specific product.
Where to add the shortcode
- Product pages - Add it to the product description or use your page builder to place it near the price
- Sidebar widget - Add a Text/HTML widget and paste the shortcode
- Cart or checkout page - Add it via your theme's page settings if your theme supports custom content in those areas
- Any page or post - Works anywhere WordPress renders shortcodes
Prices are fetched from the same Binance API that AshePay uses for actual payment calculations, so the shortcode prices are always consistent with what customers will see at checkout.