add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); ?> >> '; // print_r($_SESSION); ?>
count_contents() > 0) { ?>
'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_REMOVE); $info_box_contents[0][] = array('params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_PRODUCTS); $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_QUANTITY); $info_box_contents[0][] = array('align' => 'right', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_TOTAL); $any_out_of_stock = 0; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { foreach ($products[$i]['attributes'] as $option => $value) { //clr 030714 move hidden field to if statement below //echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . $products[$i]['id'] . "' and pa.options_id = '" . $option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . $value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . $languages_id . "' and poval.language_id = '" . $languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); //clr 030714 determine if attribute is a text attribute and assign to $attr_value temporarily if ($value == PRODUCTS_OPTIONS_VALUE_TEXT_ID) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']', $products[$i]['attributes_values'][$option]); $attr_value = $products[$i]['attributes_values'][$option]; } else { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attr_value = $attributes_values['products_options_values_name']; } $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $value; //clr 030714 assign $attr_value $products[$i][$option]['products_options_values_name'] = $attr_value ; $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; } } } for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (($i/2) == floor($i/2)) { $info_box_contents[] = array('params' => 'class="productListing-even"'); } else { $info_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($info_box_contents) - 1; $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id'])); $products_name = '\n\n \n' . ' \n \n' . ' \n ' . ' \n ' . ' \n \n' . '
[' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '](' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . ')\n[**' . $products[$i]['name'] . '**](' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . ')'; if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= $stock_check; } } if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { foreach ($products[$i]['attributes'] as $option => $value) { //Uwe Switch($option) { case 1: $products[$i][$option]['products_options_name']="Mietfaktor:"; $Faktor=$products[$i][$option]['products_options_values_name']; break; case 2: $products[$i][$option]['products_options_name']="Miettage:"; break; case 3: $products[$i][$option]['products_options_name']="Abholdatum:"; $products[$i][$option]['products_options_values_name']=str_replace('_', '.', $products[$i][$option]['products_options_values_name']); break; case 4: $products[$i][$option]['products_options_name']="Abholzeit:"; $products[$i][$option]['products_options_values_name'].=':00 Uhr'; break; case 5: $products[$i][$option]['products_options_name']="Rückgabedatum:"; $products[$i][$option]['products_options_values_name']=str_replace('_', '.', $products[$i][$option]['products_options_values_name']); break; case 6: $products[$i][$option]['products_options_name']="Rückgabezeit:"; $products[$i][$option]['products_options_values_name'].=':00 Uhr'; break; } $products_name .= '_ - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '_'; } } $products_name .= ' \n
\n \n'; $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); $products[$i]['final_price']*=$Faktor; $Total_rent+=$products[$i]['final_price']*$products[$i]['quantity']; $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '**' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '**'); } new productListingBox($info_box_contents); $_SESSION['cart_totalrent'] = $Total_rent*1.19; $cart->totalrent = $_SESSION['cart_totalrent']; ?>
**format($cart->totalrent); ?>**
path)-2; if (isset($navigation->path[$back])) { ?>
path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '" >' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . ''; ' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '';
path[$back]['get'] as $key => $wert) // { // Print $key." : ".$wert."\n"; // } ?>
TEXT_CART_EMPTY)); ?>
' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '';
path[$back]['page']."\n"; //$Arr=$navigation->path[$back]['get']; // Foreach($Arr as $key => $wert) // { // Print $key." : ".$wert."\n"; // } ?>