當前位置: 首頁>>代碼示例>>PHP>>正文


PHP wpsc_cart_item_url函數代碼示例

本文整理匯總了PHP中wpsc_cart_item_url函數的典型用法代碼示例。如果您正苦於以下問題:PHP wpsc_cart_item_url函數的具體用法?PHP wpsc_cart_item_url怎麽用?PHP wpsc_cart_item_url使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了wpsc_cart_item_url函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: submenu_items

 /**
  * 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;
 }
開發者ID:Atlas-Solutions-Group,項目名稱:wp-menu-cart-pro,代碼行數:33,代碼來源:wpmenucart-wpec-pro.php

示例2: wpsc_cart_item_image

        ?>
		
		<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();
        ?>
"/>
開發者ID:papayalabs,項目名稱:htdocs,代碼行數:31,代碼來源:shopping_cart_page.php

示例3: wpsc_the_cart_item_key

        ?>
            </div>
         <?php 
    }
    ?>
         </td>

         <td class="wpsc_product_name wpsc_product_name_<?php 
    echo wpsc_the_cart_item_key();
    ?>
">
			<?php 
    do_action("wpsc_before_checkout_cart_item_name");
    ?>
            <a href="<?php 
    echo esc_url(wpsc_cart_item_url());
    ?>
"><?php 
    echo wpsc_cart_item_name();
    ?>
</a>
			<?php 
    do_action("wpsc_after_checkout_cart_item_name");
    ?>
         </td>

         <td class="wpsc_product_quantity wpsc_product_quantity_<?php 
    echo wpsc_the_cart_item_key();
    ?>
">
            <form action="<?php 
開發者ID:benhuson,項目名稱:WP-e-Commerce,代碼行數:31,代碼來源:wpsc-shopping_cart_page.php

示例4: __

		<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>
			<td>
			
開發者ID:nerdfiles,項目名稱:sideshowtramps.com,代碼行數:30,代碼來源:shopping_cart_page.php


注:本文中的wpsc_cart_item_url函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。