Customize e-commerce shopping cart view.

I wanted to implement another view of shipping cart.
Usually, it can be done, by theme’ing wpsc-cart_widget.php in your theme directory.

But for some reasons, this didn’t work for me.

I specified Shopping cart type as Widget in Settings -> Store -> Presentation.
added the following code to my theme template:


and the following code to functions.php:

 
function wpsc_shopping_cart1( $input = null, $override_state = null ) {
        global $wpdb;
                        $cart = $_SESSION['nzshpcrt_cart'];
                        echo "
"; echo wpsc_shopping_basket_internals1( $cart ); echo "
"; return $input; } function wpsc_shopping_basket_internals1( $cart, $quantity_limit = false, $no_title=false ) { global $wpdb; $display_state = ''; if ( ( ( ( isset( $_SESSION['slider_state'] ) && $_SESSION['slider_state'] == 0) ) || ( wpsc_cart_item_count() < 1 ) ) && ( get_option( 'show_sliding_cart' ) == 1 ) ) $display_state = "style='display: none;'"; echo "
"; include_once('wpsc-cart_widget.php' ); echo "
"; }

Then customize wpsc-cart_widget.php file in your them directory

Leave a Reply

%d bloggers like this: