wpsc_cart_tax

Located in: Located in: checkout.class.php
Version Introduced: 3.8

Description: This template tag returns the tax value for the total order. This would most likely be used on the checkout page as part of the order total table. Use this function with

 wpsc_display_tax_label(); 

To display the Tax label and the Tax value.

Note: Tax setting must be configured within the store. You must use this tag within the checkout loop, the class is only returned so you must echo the tag.
[php] while (wpsc_have_checkout_items()) : wpsc_the_checkout_item(); ?> [/php]

For example:
[php]
<?php echo wpsc_display_tax_label() . ‘ ‘ . wpsc_cart_tax(); ?>
[/php]
Would display:

Tax Included: $10.00

Code Example:
[php]
<table class="productcart">
<tr class="total_price total_tax">
<td colspan="3">
<?php echo wpsc_display_tax_label(true); ?>
</td>
<td colspan="2">
<span id="checkout_tax" class="pricedisplay checkout-tax"><?php echo wpsc_cart_tax(); ?></span>
</td>
</tr>
</table>

[/php]