구글 판매자센터 피드

- 모든 옵션재고 중 1이상의 재고가 존재하는 경우 : in_stock
This commit is contained in:
loves2tu
2021-12-31 06:32:14 +00:00
parent 754b25191f
commit 4227039811

View File

@ -19,7 +19,7 @@ for ($i = 0; $row = sql_fetch_array($result); $i++ ) {
$row['ca_adult_parent4']); // 4depth 성인인증
}
$sql =" SELECT a.*, IFNULL((SELECT MIN(`io_stock_qty`) FROM `{$g5['g5_shop_item_option_table']}` WHERE `it_id` = a.`it_id` GROUP BY `it_id`), a.`it_stock_qty`) AS in_stock
$sql =" SELECT a.*, IFNULL((SELECT MAX(`io_stock_qty`) FROM `{$g5['g5_shop_item_option_table']}` WHERE `it_id` = a.`it_id` GROUP BY `it_id`), a.`it_stock_qty`) AS in_stock
FROM `{$g5['g5_shop_item_table']}` as a
where a.`it_use` = '1' and a.`it_soldout` = '0' and a.`it_tel_inq` = '0' and a.`it_price` > '0' order by a.`ca_id`";
$result = sql_query($sql);