wpsc_product_postage_and_packaging

Located in: product-template.php
Version Introduced: 3.8

Description: This template tag is used to print out the product shipping, it will only print the flat rate value applied to the product.

Note: This function just returns the pnp so to use this function you must use it with an echo to output the pnp to the browser. This function will also only work for flat rate per product shipping – it will not return any other shipping costs.

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"><?php _e(‘Shipping’, ‘wpsc’); ?>:<span class="pp_price"><?php echo wpsc_product_postage_and_packaging(); ?></span></p>[/php]