Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--IN HEADER.PHP-->
- <span id="count"><?php if (function_exists('wpsc_cart_item_count')) { echo wpsc_cart_item_count(''); ?></span> items | <span id="total"><?php echo wpsc_cart_total_widget(); } ?></span>
- <!--IN FUNCTIONS.PHP-->
- <?
- /**
- * action hook for wp-e-commerce to provide our own AJAX cart updates
- */
- function theme_cart_update() {
- $cart_count = wpsc_cart_item_count();
- $total = wpsc_cart_total_widget();
- echo <<<HTML
- jQuery("#count").html("$cart_count");
- jQuery("#total").html("$total");
- HTML;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement