Search...
영카트 상품 구매한 갯수
설명 :
상품을 구매한 개수를 가져오려면...
장바구니에서 완료 인 것의 합을 가져오면된다.
단일 제품을 가져오려면...
sql
select ifnull(SUM(ct_qty),0) as sum_qty
from {$g5['g5_shop_cart_table']}
where ct_status in ('완료')
and it_id = '{$row['it_id']}'
모든 제품을 가져오려면...
sql
select SUM(ct_qty) as sum_qty , it_id
from {$g5['g5_shop_cart_table']}
where ct_status in ('완료')