Return to Snippet

Revision: 59290
at August 30, 2012 13:57 by ecksteing


Initial Code
<? /** WP E-COMMERCE UPDATE HEADER CART ITEM TOTAL */
function theme_cart_update() {
    $cart_count = wpsc_cart_item_count();
        echo <<<HTML
jQuery(".ge-count").html("$cart_count item in cart");
HTML;
}

add_action('wpsc_alternate_cart_html', 'theme_cart_update');
/** END WP E-COMMERCE UPDATE HEADER CART ITEM TOTAL */
?>

Initial URL
http://eckstein.id.au/11946/wordpress/wp-e-commerce-shop-cart/

Initial Description
CREATE A HEADER MINI-CART IN WP E-COMMERCE - Part 3

Initial Title
CREATE A HEADER MINI-CART IN WP E-COMMERCE - Part 3

Initial Tags
php, wordpress

Initial Language
PHP