Posted By

ecksteing on 08/30/12


Tagged

php wordpress Ecommerce


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Josueriv


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


 / Published in: PHP
 

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

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

  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. ?>

Report this snippet  

You need to login to post a comment.