loadObject("productid='$prodID'")){ if($product->active==0){ header("Location: ".HOME_PAGE);exit(); } $catID=$product->categoryid;//just to be sure //print "c=".$catID; //get category title $categoryObject = new ProductCategory($db); $categoryTitleArray=$categoryObject->getCategoryTitleBoth($catID); $categoryTitleUrlEN =fix_cat_name_for_url($categoryTitleArray["titleen"]); $categoryTitle=$categoryTitleArray[$titleFinal]; $encodedCat=SaveSingleVar::storeurl("c=".$catID); $topsection=$product->topsection; $parentCategoryID = $categoryObject->getCategoryParent($catID); $encodedParentCat=SaveSingleVar::storeurl("c=".$parentCategoryID); $parentCategoryTitle = $categoryObject->getCategoryTitle($parentCategoryID); }else{ header("Location: ".HOME_PAGE);exit(); } } $brandTitle=""; $brandTitleEn=""; $encodedBrandDetail=""; $productSubtitle=""; $productNotes=""; $brandObject=new ProductBrand($db); if($product->brand!="" && $product->brand!="0"){ if($brandObject->loadObject($product->brand)){ $brandTitle=stripslashes(($_lang==LANGUAGE_GREEK?$brandObject->brand:$brandObject->branden)); $brandTitleEn=stripslashes($brandObject->branden); $encodedBrandDetail=SaveSingleVar::storeurl("b=".$product->brand); } } $productTitle=($_lang==LANGUAGE_GREEK?stripslashes($product->title):stripslashes($product->titleen)); $productSubtitle=($_lang==LANGUAGE_GREEK?stripslashes($product->subtitle):stripslashes($product->subtitleen)); $productNotes=($_lang==LANGUAGE_GREEK?stripslashes($product->notes):stripslashes($product->notesen)); //$topsectionName=returnTopLevelName($product->topsection); $originalPrice=0; //calculate price and find out if this is a discount customer or the product has a discount from itself $finalPrice=$product->price;// $originalPrice=$product->priceen;//get price according country if(isset($_SESSION['_xData'][SESSION_LOGIN_DISCOUNT]) && $_SESSION['_xData'][SESSION_LOGIN_DISCOUNT]!="0" && $_SESSION['_xData'][SESSION_LOGIN_DISCOUNT]!=""){ $finalPrice=calculateDiscount($product->price,$_SESSION['_xData'][SESSION_LOGIN_DISCOUNT]); $productDiscountedFlag=true; }elseif ($product->discount!="" && $product->discount!="0"){ $finalPrice=calculateDiscount($product->price,$product->discount); $productDiscountedFlag=true; } $finalPrice=number_format($finalPrice,2,".",","); $finalChars=""; $finalChars=($_lang==LANGUAGE_GREEK?stripslashes($product->chars):stripslashes($product->charsen)); $imageCounter=0; $image = "/_images/nophotobig.gif"; if($product->image1!=""){ $imageCounter++; } if($product->image2!=""){ $imageCounter++; } if($product->image3!=""){ $imageCounter++; } if($product->image4!=""){ $imageCounter++; } if($product->image5!=""){ $imageCounter++; } if($product->image6!=""){ $imageCounter++; } if(isset($product->image1) && @file_exists(UPLOAD_DIR.$product->image1)){ $image = UPLOAD_DIR_SHOW."tnsb_".$product->image1; } $pathString=""; if($parentCategoryID!="0"){ $parentCategoryTitleUrl=fix_cat_name_for_url($parentCategoryTitle); $encodedCategoryIDParent=SaveSingleVar::storeurl("c=".$parentCategoryID); $pathString="> $parentCategoryTitle"; } $teaser=stripslashes(($_lang==LANGUAGE_GREEK?$product->teaser:$product->teaseren)); $newKeywords=generateKeywords($teaser); $metaDescription="$productTitle , ".($_lang==LANGUAGE_GREEK?"Κατηγορία":"Category").": $categoryTitle,".($_lang==LANGUAGE_GREEK?"Τιμή":"Price")." $finalPrice euro ".($_lang==LANGUAGE_GREEK?"αντιπροσωπεία":"Brand").": $brandTitle -$teaser"; $metaKeywords=$metaKeywords.",".$newKeywords; $pathStringCats=""; $pathCats=$productCategoryObject->_getCategoriesPath("category",$catID); $pathCats=array_reversed($pathCats); //reverse the arrays //printArray($pathCats); $pathStringCats=implode(" >",$pathCats); //printArray($dataProducts); ?> - E-shop -
0){ ?>zoom in