Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

Showing the Price for a Download

Showing the price of a digital product can be done with the edd_price() function. This function can be placed anywhere in your theme files and only requires the ID number of the download whose price you want to show. By default the function will echo (not return) a nicely formatted price amount; this includes currency sign and position.

Example:

If you wish to show the price range for a variably priced product you can use the
edd_price_range() function, like so:

echo edd_price_range( $download_id );

This will output a price range like this:

$15 - $35

Other Options

edd_price() can also option return the output (not echo) and also show the prices of specific variations. For more details please read the edd_price() docs.