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??)
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.
Hi.., word press version 3.5.1 and my wp e-commerece version 3.8.11.1, my one and only question is where will be the chechout html and php page located in my system(locally), what would be the name of the file. I want to customize the Purchase button in the checkout page..
Thanks….!
Depending on what you wish to change you can style the purchase button CSS which would usually be /wpsc/theme/wpsc-default.css by looking at classes that contain ‘make_purchase’ and ‘buy_button’ such as #checkout_page_container .wpsc_make_purchase and #content input.wpsc_buy_button (for example).
Other changes such as changing the word Purchase to something would probably can be made in /wpsc-theme/wpsc-shopping_cart_page.php at around line 470.
Good luck.
word press version 3.5.1 and my wp e-commerece version 3.8.11.1
I can’t view page section if wp ecommerce is active, it said : SSL connection error
and my checkout page is not function.
pls help me…
Hi,
I can’t help with this problem. You should raise it on the WPEC support forum. It usually helps if you can provide them with cut/paste of all the error messages your getting and a link to the page/s that show the error.
Good luck, Mike.
Hi, I am having the same problem that you had and would like to move product total above like you did. I found a file named wp-shopping-cart.php but it does not have 451 lines to put the code you mentioned.
I woud really like this get this resolved as it is important for customers to see total before. Any help would be greatly appreciated!
Thank You,
Javier
Hi Javier,
The changes is this post were done on WP eCommerce version 3.8.7.6.2. If you let me know what version your using I’ll take a look.
Regards,
Mike.