andherba
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [WP eCommerce] [Plugin: WP e-Commerce] Shopping Cart In Header not updating[ Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin ]
Hello,
I needed the same functionality. So what I did was to use the same classes for the div’s containing the shopping cart. This is what I added to my header:<?php if(wpsc_cart_item_count() > 0): ?> <div class="shoppingcart"> <div class="shopping-cart-wrapper"> <div class="shoppingcart"> <table> <tr class="cart-widget-total"> <td class="cart-widget-count"> <?php printf( _n('%d item', '%d items', wpsc_cart_item_count(), 'wpsc'), wpsc_cart_item_count() ); ?> </td> <td class="pricedisplay checkout-total" colspan='4'> <?php _e('Total', 'wpsc'); ?>: <?php echo wpsc_cart_total_widget( false, false ,false ); ?> <small><?php _e( 'excluding shipping and tax', 'wpsc' ); ?></small> </td> </tr> <tr> <td id='cart-widget-links' colspan="5"> <a>" title="<?php _e('Checkout', 'wpsc'); ?>" class="gocheckout"><?php _e('Checkout', 'wpsc'); ?></a> <form action="" method="post" class="wpsc_empty_the_cart"> <input type="hidden" name="wpsc_ajax_action" value="empty_cart" /> <a>" class="emptycart" title="<?php _e('Empty Your Cart', 'wpsc'); ?>"><?php _e('Clear cart', 'wpsc'); ?></a> </form> </td> </tr> </table> </div> </div> </div> <?php endif; ?>
Viewing 1 replies (of 1 total)