コード例 #1
0
				<?php 
switch ($output_view) {
    case 'simple':
        if ($count) {
            $output = '<div class="mod_cart_extend_total_pro_value" id="mod_cart_total_txt_product" >';
            $output .= JText::_('COM_REDSHOP_TOTAL_PRODUCT') . ':' . ' ' . $cartTotalProduct . ' ' . JText::_('COM_REDSHOP_PRODUCTS_IN_CART');
            $output .= '</div>';
        }
        break;
    case 'extended':
        $output = '<div class="mod_cart_products" id="mod_cart_products">';
        if ($count) {
            $cartTotalProduct = $idx;
            for ($i = 0; $i < $idx; $i++) {
                $carthelper = new rsCarthelper();
                if ($carthelper->rs_multi_array_key_exists('giftcard_id', $cart[$i]) && $cart[$i]['giftcard_id']) {
                    $giftcardData = $producthelper->getGiftcardData($cart[$i]['giftcard_id']);
                    $name = $giftcardData->giftcard_name;
                } else {
                    $product_detail = $producthelper->getProductById($cart[$i]['product_id']);
                    $name = $product_detail->product_name;
                }
                $output .= '<div class="mod_cart_product">';
                $output .= '<div class="mod_cart_product_name">' . $name . ' x ' . $cart[$i]['quantity'] . '</div>';
                if (!DEFAULT_QUOTATION_MODE || DEFAULT_QUOTATION_MODE && SHOW_QUOTATION_PRICE) {
                    $output .= '<div class="mod_cart_product_price">';
                    if ($show_with_vat) {
                        $output .= $producthelper->getProductFormattedPrice($cart[$i]['product_price'], true);
                    } else {
                        $output .= $producthelper->getProductFormattedPrice($cart[$i]['product_price_excl_vat'], true);
                    }