", $line["description"]); } // PRICE $item["price-display"] = ""; $item["akcio_percent"] = $line["akcio_percent"]; $item["akcio_fix"] = $line["akcio_fix"]; if($line["akcio_fix"] != 0) { $item["akcio"] = $line["akcio_fix"] + round($line["akcio_fix"] * $item["afa"] / 100); $item["price-display"] = "" . price($item["afa-price"], $settings["c_value"], $settings["c_display"]) . "" . price($item["akcio"], $settings["c_value"], $settings["c_display"]) . ""; $item["sale"] = 1; $item["price-minus"] = 100 - round(($line["akcio_fix"] / $item["afa-price"]) * 100); $item["afa-display"] = price($line["akcio_fix"], $settings["c_value"], $settings["c_display"]) . " + ÁFA"; $item["cartPrice"] = $line["akcio_fix"]; $item["cartAfa-price"] = $item["akcio"]; } elseif($line["akcio_percent"] != 0) { $item["akcio"] = $item["afa-price"] - round($item["afa-price"] * $line["akcio_percent"] / 100); $item["price-display"] = "" . price($item["afa-price"], $settings["c_value"], $settings["c_display"]) . "" . price($item["akcio"], $settings["c_value"], $settings["c_display"]) . ""; $item["sale"] = 1; $item["price-minus"] = $line["akcio_percent"]; $item["afa-display"] = price($item["price"] - round($item["price"] * $line["akcio_percent"] / 100), $settings["c_value"], $settings["c_display"]) . " + ÁFA"; $item["cartPrice"] =$item["price"] - round($item["price"] * $line["akcio_percent"] / 100); $item["cartAfa-price"] = $item["akcio"]; } else { $item["price-display"] = "" . price($item["afa-price"], $settings["c_value"], $settings["c_display"]) . ""; $item["sale"] = 0; $item["afa-display"] = price($item["price"], $settings["c_value"], $settings["c_display"]) . " + ÁFA"; } // IMAGE if(!is_file($item["image"]) AND $line["imported"] != 1) { $item["image"] = "images/no-image.png"; } // NAVCONTROL $item["sub-id"] = $line["sub_id"]; $item["main-link"] = $settings["href"] . "termekek/" . $line["main_id"] . "-" . createLink($line["main_name"]); $item["middle-link"] = $item["main-link"] . "/" . $line["middle_id"] . "-" . createLink($line["middle_name"]); $item["sub-link"] = $item["middle-link"] . "/" . $line["sub_id"] . "-" . createLink($line["sub_name"]); $item["item-link"] = $settings["href"] . "termek/" . $line["id"] . "-" . createLink($line["name"]); $nav[2] = "" . $line["main_name"] . ""; $nav[3] = "" . $line["middle_name"] . ""; $nav[4] = "" . $line["sub_name"] . ""; $nav[5] = "" . $line["name"] . ""; } // ***** // MAKER // ***** $sql = "SELECT * FROM makers WHERE id='" . $item["maker"] . "'"; $mysql_query = mysql_query($sql); while($line = mysql_fetch_array($mysql_query)) { $item["maker-id"] = $line["id"]; $item["maker-name"] = $line["name"]; $item["maker-image"] = "temp/makers/" . $line["image"]; } // *********** // MULTI PRICE // *********** $priceSum = 0; $sql = "SELECT COUNT(id) AS priceSum FROM products_prices WHERE product_time='" . $item["time"] . "'"; $mysql_query = mysql_query($sql); while($line = mysql_fetch_array($mysql_query)) { $priceSum = $line["priceSum"]; } if($priceSum > 0) { $item["cartPrice"] = ""; $item["cartAfa-price"] = ""; } // ************* // SHIPPING TIME // ************* $issetShipping = 0; $sql = "SELECT * FROM settings_shipping WHERE id='" . $settings["display_item_shippingdate"] . "'"; $mysql_query = mysql_query($sql); while($line = mysql_fetch_array($mysql_query)) { $shippingTimeOk = $line["order_time_ok"]; $shippingTimeNone = $line["order_time_none"]; $issetShipping = 1; } if($item["outOfStock"] == 0) { $shippingDays = $shippingTimeOk; } else { $shippingDays = $shippingTimeNone; } // ***** // VIEWS // ***** $views = "UPDATE products SET views = views+1 WHERE id='$id'"; mysql_query($views); $nav[1] = "Termékek"; $meta["title"] = $settings["title"] . " / " . $item["name"]; $meta["keywords"] = $item["keywords"]; $meta["description"] = $item["short"]; if($design["termekoldal"] == 1) { $hide_sidebar = 1; $add_css = "height: 480px"; } include("frame-header.php"); ?>

Termék ára
Azonosító
Cikkszám
Elérhetőség
Változat
Gyártó