query($sql); $row = $d->fetch_array(); return $row; } function remove_product($pid,$size,$mau){ $pid=intval($pid); $max=count($_SESSION['cart']); for($i=0;$i<$max;$i++){ if($pid==$_SESSION['cart'][$i]['productid'] && $size==$_SESSION['cart'][$i]['size'] && $mau==$_SESSION['cart'][$i]['mau']){ unset($_SESSION['cart'][$i]); break; } } $_SESSION['cart']=array_values($_SESSION['cart']); if(count($_SESSION['cart'])==0) { $redirect=true; } else { $redirect=false; } } function get_order_total(){ global $d; $max=count($_SESSION['cart']); $sum=0; for($i=0;$i<$max;$i++){ $pid=$_SESSION['cart'][$i]['productid']; $q=$_SESSION['cart'][$i]['qty']; $price=get_product($pid); $sum+=$price['gia']*$q; } return $sum; } function get_total(){ $max=count($_SESSION['cart']); $sum=0; for($i=0;$i<$max;$i++){ $q=$_SESSION['cart'][$i]['qty']; $sum+=$q; } return $sum; } function addtocart($pid,$q,$size,$mau){ if($pid<1 or $q<1) return; if(is_array($_SESSION['cart'])){ $ck=product_exists($pid,$size,$mau); if($ck==-1) { ## Sản phẩm chưa có => thêm vào giỏ hàng $max=count($_SESSION['cart']); $_SESSION['cart'][$max]['productid']=$pid; $_SESSION['cart'][$max]['qty']=$q; $_SESSION['cart'][$max]['size']=$size; $_SESSION['cart'][$max]['mau']=$mau; } else { ## Sản phẩm đã có => cộng dồn số lượng $_SESSION['cart'][$ck]['qty']=$q+$_SESSION['cart'][$ck]['qty']; } } else{ $_SESSION['cart']=array(); $_SESSION['cart'][0]['productid']=$pid; $_SESSION['cart'][0]['qty']=$q; $_SESSION['cart'][0]['size']=$size; $_SESSION['cart'][0]['mau']=$mau; } } function product_exists($pid,$size,$mau){ $pid=intval($pid); $max=count($_SESSION['cart']); $flag=-1; for($i=0;$i<$max;$i++){ if($pid==$_SESSION['cart'][$i]['productid'] && $size==$_SESSION['cart'][$i]['size'] && $mau==$_SESSION['cart'][$i]['mau']){ $flag=$i; break; } } return $flag; } ?> Logi






About us


LOGI  Limited Company 

LOGI Co., Ltd started up in 2007. LOGI is defined by the outstanding consumer goods distribution and the wholesale trade that we have built for over 10 years in domestic and 4 years worldwide.

Our professional staff and robust systems are committed to providing completely customer satisfaction by our knowledge, our honesty and by offering to quality products at a fair price and high level of service.

Our field of operations covers the entire world, where we trade the branded consumer goods. LOGI is specialized in distribution of products manufactured by Unilever, Proter & Gramble and others well-know multi-national

By having knowledgeable and experienced of international branded products, we can offer our clients extremely favorable terms on a host of well-know products

For many years, we have built the extremely goods relationship with buyers and manufacturers. Thanks to this we are creating a worldwide distribution of branded products

We have an enormous expertise when it comes to customer relations, knowledge, experience, which we used to build up long-term relationships with our suppliers and customers. Our client base consisted in general of retail chains, buying group, wholesalers and distributors all over the world. Our head office is strategically located in Ho Chi Minh City


Other news

Sản phẩm
Đơn giá
Số lượng
Thành tiền
Thành tiền: