<?php /* if(isset($cart_messages) && count($cart_messages) > 0) { ?>
	<?php foreach((array)$cart_messages as $cart_message) { ?>
	  <span class="cart_message"><?php echo esc_html( $cart_message ); ?></span>
	<?php } ?>
<?php } */?>
<?php if(wpsc_cart_item_count() > 0): ?>
    
	<div class="shoppingcart">
	<table style="border-collapse: collapse;">
		<tbody>
		<?php while(wpsc_have_cart_items()): wpsc_the_cart_item(); ?>
			<tr class="gradient-cart-tr">
					<td class=""><img src="<?php echo wpsc_cart_item_image();?>" alt="<?php echo wpsc_cart_item_name();?>"></td><td class='product-name'><?php do_action ( "wpsc_before_cart_widget_item_name" ); ?><a href="<?php echo wpsc_cart_item_url(); ?>"><?php echo wpsc_cart_item_name(); ?></a><?php do_action ( "wpsc_after_cart_widget_item_name" ); ?></td>
					<td><?php /*echo wpsc_cart_item_quantity(); */?></td>
					<td><?php echo wpsc_cart_item_price(); ?></td>
                    <td class="cart-widget-remove"><form action="" method="post" class="adjustform">
					<input type="hidden" name="quantity" value="0" />
					<input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>" />
					<input type="hidden" name="wpsc_update_quantity" value="true" />
					<input class="remove_button" type="submit" />
				</form></td>
			</tr>
			<tr><td colspan="5">&nbsp;</td></tr>	
		<?php endwhile; ?>
		</tbody>
		<tfoot>
			<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() );*/ ?><span id="in_cart" style="color:#eee">
					<?php $n = wpsc_cart_item_count();
					if ($n == ''): $n == '0';
					endif;
					echo ($n);
					?>
					</span>
					<script type="text/javascript">
							var $b=jQuery('span#in_cart').text();
							jQuery('span#itemsnumber').text($b);
					</script>
				</td>
				<td class="pricedisplay checkout-total" colspan='4'>
					<?php _e('Total', 'wpsc'); ?>: <?php echo wpsc_cart_total_widget( false, false ,false ); ?><br />
					
				</td>
			</tr>
			<tr><td colspan="5">&nbsp;</td></tr>
			<tr>
				<td id='cart-widget-links' colspan="5">
					<a target="_parent" href="<?php echo get_option('shopping_cart_url'); ?>" title="<?php _e('Commander', 'wpsc'); ?>" class="gocheckout"><?php _e('Commander', 'wpsc'); ?></a>
					<form action="" method="post" class="wpsc_empty_the_cart">
						<input type="hidden" name="wpsc_ajax_action" value="empty_cart" />
							<a target="_parent" onClick="jQuery('span#itemsnumber').text('0');" href="<?php echo htmlentities(add_query_arg('wpsc_ajax_action', 'empty_cart', remove_query_arg('ajax')), ENT_QUOTES, 'UTF-8'); ?>" class="emptycart" title="<?php _e('Empty Your Cart', 'wpsc'); ?>"><?php _e('Clear cart', 'wpsc'); ?></a>                                                                                    
					</form>
				</td>
			</tr>
		</tfoot>
	</table>
	</div><!--close shoppingcart-->		
<?php else: ?>
	<p class="empty">
		<?php _e("Oups, il n'y a rien dans votre panier.", 'wpsc'); ?><br />
		<a target="_parent" href='http://ceramique-de-lussan.com/boutique-en-ligne/' class="visitshop" title="<?php _e('Visit Shop', 'wpsc'); ?>"><?php _e("S'il vous pla&#206;t visitez notre boutique", 'wpsc'); ?></a>	
	</p>
<?php endif; ?>

<?php
wpsc_google_checkout();


?>