请问怎么在下面的复写 添加产品图片到购物车区块
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;
}
我记得 购物车里面 ,默认是有产品图片的
我记得 购物车里面 ,默认是有产品图片的 ,我刚才检查了一下,默认是有图片的。
你要向里面加图片么?
我弄好了 谢谢 我复写了函数
我弄好了 谢谢 我复写了函数