You are here

购物车区块

zyg 的头像
Submitted by zyg on 星期二, 2013-03-19 05:56

请问怎么在下面的复写 添加产品图片到购物车区块

function imall_uc_cart_block_content($variables) {
  $help_text = $variables['help_text'];
  $items = $variables['items'];
  $item_count = $variables['item_count'];
  $item_text = $variables['item_text'];
  $total = $variables['total'];
  $summary_links = $variables['summary_links'];
  $collapsed = $variables['collapsed'];
  $output = '';
 
  $output .= '<div class="cart-wrapper">';
  $output .= '<div class="cart">';
  $output .= l($item_text, 'cart', array('attributes' => array('class' => array('line-item-quantity')), 'html' => true));
  $output .= '<div class="line-item-total"><span class="line-item-total-raw">' . theme('uc_price', array('price' => $total)) . '</span></div>';
  $output .= '</div>';
  $output .= '<div class="cart-summary">';
  // Add the help text if enabled.
  if ($help_text) {
    $output .= '<span class="cart-help-text">' . $help_text . '</span>';
  }
print_r($items);
  // Add a table of items in the cart or the empty message.
  $output .= theme('uc_cart_block_items', array('items' => $items, 'collapsed' => $collapsed));
 
  // Add the summary section beneath the items table.
  $output .= theme('uc_cart_block_summary', array('item_count' => $item_count, 'item_text' => $item_text, 'total' => $total, 'summary_links' => $summary_links));
 
  $output .= '</div></div>';
  
  return $output;
}

论坛:

Drupal版本: