/ Published in: PHP
CREATE A HEADER MINI-CART IN WP E-COMMERCE - Part 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<? /** 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 */ ?>
URL: http://eckstein.id.au/11946/wordpress/wp-e-commerce-shop-cart/