wp-e-commerce Add To Cart To Go To Shopping Cart Page

I was working on a wordpress site with wp-e-commerce + goldcart and we wanted the “add to cart” button to also go to the cart whenever a product is added. Based on this thread here I was able to figure out what to do:

edit the file ‘wp-content/plugins/wp-e-commerce/wpsc-includes/display.functions.php’
on what is currently line 205, inside this part
<div class='wpsc-add-to-cart-button'>
<form class='wpsc-add-to-cart-button-form' id='product_<?php echo esc_attr( $product_id ) ?>' action=''...

changed:

action=”

to

action=’/products-page/checkout’

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *