wpsc_the_product_price

Located in: product-template.php
Version Introduced: 3.8
Parameters Accepted: $no_decimals (default = false), $only_normal_price (default = false)

Description: This template tag is used to print the product price – if the product is on special it will return the special price. (so long as $only_normal_price is set to false )

Note: This function just returns the product price so to use this function you must use it with an echo to output the price to the browser.

This function must be used within the product loop
[php] <?php while (wpsc_have_products()) : wpsc_the_product(); ?>[/php]

Code Example:
[php]
<p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e(‘Price’, ‘wpsc’); ?>: <span id=’product_price_<?php echo wpsc_the_product_id(); ?>’ class="currentprice pricedisplay"><?php echo wpsc_the_product_price(); ?></span></p>
[/php]