Located in: Located in: product-template.php
Version Introduced: 3.8
Parameters Accepted: $product_id

Description: This template tag is used to return the product price, it will take into account special prices and variations. It accepts one parameter which is the product ID.

NOTE: If using this tag inside the product loop you can use


as the product ID.

Code Example:
<input type="text" id="donation_price_<?php echo wpsc_the_product_id(); ?>" name="donation_price" value="<?php echo wpsc_calculate_price(wpsc_the_product_id()); ?>" size="6" />