} } //W. Kaiser - AJAX if (CUSTOMER_SHOW_PRICE) { if ($not_show_saved_cart) { $price_raw = $_SESSION['cart']->show_total(); $span_price_start = '<span id="cart_total_price_1">'; } $price = olc_format_price($price_raw, $price_special = 1, $calculate_currencies = false); if (IS_AJAX_PROCESSING) { $price = $span_price_start . $price . $span_end; } $total_content = EMPTY_STRING; if (CUSTOMER_SHOW_OT_DISCOUNT) { if (CUSTOMER_OT_DISCOUNT != '0.00') { $price_discounted = olc_recalculate_price($price_raw, CUSTOMER_OT_DISCOUNT); $price = ltrim(olc_format_price(price_discounted, $price_special = 1, $calculate_currencies = false)); if (IS_AJAX_PROCESSING) { $price = $span_price_start . $price . $span_end; $price = olc_draw_hidden_field("total_discount_value", CUSTOMER_OT_DISCOUNT) . '<span id="cart_total_discount">' . $price . $span_end; } $total_content = CUSTOMER_OT_DISCOUNT . ' % ' . SUB_TITLE_OT_DISCOUNT . ' - ' . $price . HTML_BR; } } $total_content .= SUB_TITLE_TOTAL . $price; } else { $total_content .= TEXT_INFO_SHOW_PRICE_NO; } $total_content .= HTML_BR; // display only if there is an ot_discount if (CUSTOMER_OT_DISCOUNT != 0) {
$products_in_cart[] = array('QTY' => $product['quantity'], 'LINK' => olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product['id'] . '&cart_line=' . $i), 'ELEMENT' => $i, 'ID' => $this_products_id, 'PRICE' => $price, 'FINAL_PRICE' => olc_format_price($product['final_price'], 1, 0, 0), 'CURRENCY' => SESSION_CURRENCY, 'OPTIONS' => $options_text, 'NAME' => str_replace(HTML_BR, BLANK, $product['name'])); //W. Kaiser - AJAX } } //$box_smarty->assign('PRODUCTS',$qty); $total_price = $_SESSION['cart']->show_total(); $box_smarty->assign('ITEMS', $items); $box_smarty->assign('TOTAL', olc_format_price($total_price, true, true)); //$isprint_version=true; include DIR_FS_INC . 'olc_get_price_disclaimer.inc.php'; $box_smarty->assign('PRICE_DISCLAIMER', $price_disclaimer); $isprint_version = false; $box_smarty->assign('TOTAL_UNDISCOUNTED', $total_price); if (CUSTOMER_SHOW_OT_DISCOUNT) { if (CUSTOMER_OT_DISCOUNT != 0) { $discount = olc_format_price(olc_recalculate_price($total_price * -1, CUSTOMER_OT_DISCOUNT), $price_special = 1, $calculate_currencies = false); if (IS_AJAX_PROCESSING) { $price = olc_draw_hidden_field('total_discount_value', CUSTOMER_OT_DISCOUNT) . '<span id="cart_total_discount">' . $price . '</span>'; } $box_smarty->assign('DISCOUNT', $discount); } } $_GET['products_id'] = $products_id_save; } else { // cart empty $empty_cart = true; } if (ACTIVATE_GIFT_SYSTEM == 'true') { $box_smarty->assign('ACTIVATE_GIFT', true); } // GV Code Start