WordPress Version: 3.3.1
WP-eCommerce Version: 3.8.7.6.2
Plugin Author: GetShopped / Instinct

Problem:

WPEC Checkout Page “Review and Purchase”

When using WPEC 3.8.7.6.2 the checkout page has a section at the bottom titled “Review and Purchase”. Unfortunately however the WPEC developers have chosen not to show the customer the complete details of the transaction to review.

The WPEC default presentation is to show the Total Shipping, Discounts and the grand Total. The product total and tax are not given and to see those you need to scroll back to the top of the page.

Wilst WPEC is a great plugin there are many issues with it – you only need to look in the support forum to see that. My main problem with WPEC is the simple things they either take a long time to fix or don’t fix – and this is one of the latter.

If you’d like to add the product total and tax amounts to the review section then the following code will do that. It works for me but please check it carefully on your development/test site before using it live and be sure to take a backup of the code before making changes.

You can add these two snippets in whatever order you like to the wpsc-shopping_cart_page.php file after line 451 within the <table class=’wpsc_checkout_table table-4′> section.

WPEC Checkout – Put Product Total in Review and Purchase Section

<tr class="total_price total_shipping">
<td class=’wpsc_totals’>
<?php _e(‘Products’,’wpsc’); ?>:
</td>
<td class=’wpsc_totals’>
<?php echo wpsc_cart_total_widget(false,false,false);?>
</td>
</tr>

WPEC Checkout – Put Tax Total in Review and Purchase Section

<?php if($wpec_taxes_controller->wpec_taxes_isenabled()): ?>
<tr class="total_price total_shipping">
<td class=’wpsc_totals’>
<?php _e(‘Tax’, ‘wpsc’); ?>:
</td>
<td class=’wpsc_totals’>
<?php echo wpsc_cart_tax(); ?>
</td>
</tr>
<?php endif; ?>
(the php if statement might be optional, without it you’d probably just see 0 as the tax amount??)

Checkout Page Before Changes

Checkout Page Before Changes

Checkout Page After Changes

Checkout Page After Changes

You can see a working example at USANA Canada but as this is a live site please don’t click on the Purchase button and empty your cart before you leave the site. If anyone can improve the code so it lines up tidily and make the subtotals unbold that’d be great. For now however it’s just so much more professional to have all the numbers available for the customer to see.