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


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <? /** WP E-COMMERCE UPDATE HEADER CART ITEM TOTAL */
  2. function theme_cart_update() {
  3. $cart_count = wpsc_cart_item_count();
  4. echo <<<HTML
  5. jQuery(".ge-count").html("$cart_count item in cart");
  6. HTML;
  7. }
  8.  
  9. add_action('wpsc_alternate_cart_html', 'theme_cart_update');
  10. /** END WP E-COMMERCE UPDATE HEADER CART ITEM TOTAL */
  11. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.