AshePayGuides

Using the Live Price Shortcode

How to use the [ashepay_prices] shortcode to display live crypto prices anywhere on your site.

2 min readUpdated July 14, 20269 views

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 price of the coins you accept before they reach checkout.

Basic usage

Add this shortcode to any page or post:

[ashepay_prices]

By default, this displays the current price of all tokens you have enabled in your store. On the free version that means ETH and BTC. The price is shown in your store's base currency (e.g. USD, EUR).

Showing prices in a different currency

Use the currency attribute to show prices in a specific currency (defaults to your WooCommerce store currency):

[ashepay_prices currency="eur"]

The currency code must be lowercase and match a currency supported by the Binance API (e.g. usd, eur, gbp).

Showing the full token name

Use show_name="yes" to display the full token name alongside its symbol:

[ashepay_prices show_name="yes"]

This renders something like "Ethereum USD 3,412.00" instead of just "ETH USD 3,412.00".

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
  • 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.

The shortcode only shows tokens from chains you have enabled and configured in AshePay → Settings → Networks. If no chains are enabled, the shortcode outputs nothing.

#ashepay#shortcode#prices#widget#guide