/** * Add Menu Cart to menu * * @return menu items including cart */ public function submenu_items() { global $wpsc_cart, $options; $get_cart = wpsc_cart_item_count(); $submenu_items = ''; //see jigoshop/widgets/cart.php if (count($get_cart) > 0) { //foreach ( $get_cart as $cart_item_key => $values ) { while (wpsc_have_cart_items()) { wpsc_the_cart_item(); //$_product = $values['data']; if (wpsc_cart_item_count() > 0) { global $wpsc_cart, $options; $item_thumbnail = '<img src=' . wpsc_cart_item_image() . '>'; $item_name = wpsc_cart_item_name(); $item_quantity = wpsc_cart_item_quantity(); $item_price = wpsc_cart_item_price(); // Item permalink $item_permalink = wpsc_cart_item_url(); $submenu_items[] = array('item_thumbnail' => $item_thumbnail, 'item_name' => $item_name, 'item_quantity' => $item_quantity, 'item_price' => $item_price, 'item_permalink' => $item_permalink); } //} } } else { $submenu_items = ''; } return $submenu_items; }
?> :</td> <td></td> </tr> <?php while (wpsc_have_cart_items()) { wpsc_the_cart_item(); ?> <?php //this displays the confirm your order html ?> <tr class="product_row"> <td class="firstcol"><img src='<?php echo wpsc_cart_item_image(48, 48); ?> ' alt='<?php echo wpsc_cart_item_name(); ?> ' title='<?php echo wpsc_cart_item_name(); ?> ' /></td> <td class="firstcol"> <a href='<?php echo wpsc_cart_item_url(); ?> '><?php echo wpsc_cart_item_name(); ?>
echo $alt_class; ?> "> <td class="firstcol wpsc_product_image wpsc_product_image_<?php echo wpsc_the_cart_item_key(); ?> "> <?php if ('' != wpsc_cart_item_image()) { ?> <?php do_action("wpsc_before_checkout_cart_item_image"); ?> <img src="<?php echo wpsc_cart_item_image(); ?> " alt="<?php echo wpsc_cart_item_name(); ?> " title="<?php echo wpsc_cart_item_name(); ?> " class="product_image" /> <?php do_action("wpsc_after_checkout_cart_item_image"); ?> <?php } else { /* I dont think this gets used anymore,, but left in for backwards compatibility */ ?>
echo $alt_class; ?> "> <td class="firstcol cart_del_column wpsc_product_image wpsc_product_image_<?php echo wpsc_the_cart_item_key(); ?> " style="width: 75px;"> <?php if ('' != wpsc_cart_item_image()) { ?> <a href="<?php echo wpsc_cart_item_url(); ?> "><img src="<?php echo wpsc_cart_item_image(65, 65); ?> " alt="<?php echo wpsc_cart_item_name(); ?> " title="<?php echo wpsc_cart_item_name(); ?> " class="product_image" /></a> <?php } else { /* I dont think this gets used anymore,, but left in for backwards compatibility */ ?> <div class="item_no_image"> <a href="<?php echo wpsc_the_product_permalink();
<tr class="firstrow"> <td class='firstcol'></td> <td><?php echo __('Product', 'wpsc'); ?>:</td> <td><?php echo __('Quantity', 'wpsc'); ?>:</td> <?php if(wpsc_uses_shipping()): ?> <td><?php echo __('Shipping', 'wpsc'); ?>:</td> <?php endif; ?> <td><?php echo __('Price', 'wpsc'); ?>:</td> <td></td> </tr> <?php while (wpsc_have_cart_items()) : wpsc_the_cart_item(); ?> <?php //this displays the confirm your order html ?> <tr class="product_row"> <td class="firstcol"><img src='<?php echo wpsc_cart_item_image(48,48); ?>' alt='<?php echo wpsc_cart_item_name(); ?>' title='<?php echo wpsc_cart_item_name(); ?>' /></td> <td class="firstcol"> <a href='<?php echo wpsc_cart_item_url();?>'><?php echo wpsc_cart_item_name(); ?></a> </td> <td> <form action="<?php echo get_option('shopping_cart_url'); ?>" method="post" class="adjustform"> <input type="text" name="quantity" size="2" value="<?php echo wpsc_cart_item_quantity(); ?>"/> <input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>"/> <input type="hidden" name="wpsc_update_quantity" value="true"/> <input type="submit" value="<?php echo __('Update', 'wpsc'); ?>" name="submit"/> </form> </td> <?php if(wpsc_uses_shipping()): ?> <td><span class="pricedisplay" id='shipping_<?php echo wpsc_the_cart_item_key(); ?>'><?php echo wpsc_cart_item_shipping(); ?></span></td> <?php endif; ?> <td><span class="pricedisplay"><?php echo wpsc_cart_item_price(); ?></span></td>
do_action("wpsc_before_checkout_cart_row"); ?> <tr class="product_row product_row_<?php echo wpsc_the_cart_item_key(); ?> <?php echo $alt_class; ?> "> <td class="firstcol wpsc_product_image wpsc_product_image_<?php echo wpsc_the_cart_item_key(); ?> "> <?php if ('' != wpsc_cart_item_image()) { ?> <?php do_action("wpsc_before_checkout_cart_item_image"); ?> <?php echo get_the_post_thumbnail(wpsc_cart_item_product_id(), 'thumbnail'); ?> <?php do_action("wpsc_after_checkout_cart_item_image"); ?> <?php } else { /* I dont think this gets used anymore,, but left in for backwards compatibility */ ?> <div class="item_no_image">
<div class="product-item"> <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" /> <button type="submit" class="delete-btn"><span>delete</span></button> </form> <a href="<?php echo wpsc_cart_item_url(); ?> " class="product-image"> <img src="<?php echo wpsc_cart_item_image(50, 50); ?> " alt="" width="50" height="50" /> </a> <h5><a href="<?php echo wpsc_cart_item_url(); ?> "><?php echo wpsc_cart_item_name(); ?> </a></h5> <div class="qty"> <span class="price"><?php echo wpsc_cart_item_price(); ?> </span> (<?php