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; } ?> FABRIC SOFTENER

FABRIC SOFTENER

FABRIC SOFTENER

FABRIC SOFTENER

FABRIC SOFTENER

FABRIC SOFTENER
FABRIC SOFTENER
Menu
Trang chủ » Product » Home care » FABRIC SOFTENER

FABRIC SOFTENER

Downy Garden Bloom 1.8lit Bottle

Downy Garden Bloom 1.8lit Bottle

Product code: D-CDH1.8
Price: 95.000đ
Downy Antibac 1.8L Bottle

Downy Antibac 1.8L Bottle

Product code: D-CK1.8
Price: 103.500đ
Downy 1 Banlaw 1.8L Bottle

Downy 1 Banlaw 1.8L Bottle

Product code: D-1LX1.8
Price: 103.500đ
Downy Sunrise Fresh 1.8L Bottle

Downy Sunrise Fresh 1.8L Bottle

Product code: D-NM1.8
Price: 95.500đ
Downy Fusion 1.8L Bottle

Downy Fusion 1.8L Bottle

Product code: D-HQ1.8
Price: 109.000đ
Downy Romance 1.8L Bottle

Downy Romance 1.8L Bottle

Product code: D-CX1.8
Price: 109.000đ
Downy Timeless 1.8L Bottle

Downy Timeless 1.8L Bottle

Product code: 82226383
Price: 109.000đ
Downy Passion 1.8L Bottle

Downy Passion 1.8L Bottle

Product code: D-DM1.8
Price: 109.000đ
Downy Mystique 1.8L Bottle

Downy Mystique 1.8L Bottle

Product code: D-HB1.8
Price: 109.000đ
Downy Baby 1.8L Bottle

Downy Baby 1.8L Bottle

Product code: D-EB1.8
Price: 103.500đ
Downy 1 Banlaw 1.6L Refill

Downy 1 Banlaw 1.6L Refill

Product code: D-1LX1.6
Price: 83.000đ
Downy Garden Bloom 1.8L Refill

Downy Garden Bloom 1.8L Refill

Product code: D-CDH1.8T
Price: 80.500đ
Downy Antibac 1.6L Refill

Downy Antibac 1.6L Refill

Product code: D-CK1.6
Price: 83.000đ
Downy Romance 1.6L Refill

Downy Romance 1.6L Refill

Product code: D-CX1.6
Price: 88.500đ
Downy Passion 1.6L Refill

Downy Passion 1.6L Refill

Product code: D-DM1.6
Price: 88.500đ
Downy Baby 1.6L Refill

Downy Baby 1.6L Refill

Product code: D-EB1.6
Price: 83.000đ
Close
Sản phẩm
Đơn giá
Số lượng
Thành tiền
Thành tiền: