本文整理汇总了PHP中wpsc_cart_item_image函数的典型用法代码示例。如果您正苦于以下问题:PHP wpsc_cart_item_image函数的具体用法?PHP wpsc_cart_item_image怎么用?PHP wpsc_cart_item_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpsc_cart_item_image函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: while
?>
:</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();
?>
开发者ID:papayalabs,项目名称:htdocs,代码行数:31,代码来源:shopping_cart_page.php
示例3: wpsc_the_cart_item_key
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 */
?>
开发者ID:benhuson,项目名称:WP-e-Commerce,代码行数:31,代码来源:wpsc-shopping_cart_page.php
示例4: wpsc_the_cart_item_key
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();
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:wpsc-shopping_cart_page.php
示例5: __
<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>
开发者ID:nerdfiles,项目名称:sideshowtramps.com,代码行数:31,代码来源:shopping_cart_page.php
示例6: do_action
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">
开发者ID:ryanimel,项目名称:wpcandy-theme,代码行数:31,代码来源:wpsc-shopping_cart_page.php
示例7: wpsc_the_cart_item_key
<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
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:wpsc-cart_widget.php
注:本文中的wpsc_cart_item_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论