{$sticker->bought_count}
판매수 코드가 위와 같이 되어있는데 판매수가 전혀 올라가질 않고 있는데요 혹시 코드가 잘못된건가요?
{$sticker->bought_count}
판매수 코드가 위와 같이 되어있는데 판매수가 전혀 올라가질 않고 있는데요 혹시 코드가 잘못된건가요?
여기를 건드릴게 아닌거 같아요... ㅡㅡ;
$checkBuyHistoryToday = $this->_checkBuyStickerToday($member_srl, $sticker_srl);
if($sticker->member_srl != $member_srl && $checkBuyHistoryToday === 0){
$this->_increaseStickerBuyCount($sticker_srl);
}
이런 코드가 보이네요..
일단 원래대로 돌려 놓고 오늘은 포기하고 나중에 어디가 문제인지 다시 봐야 겠어요.
$args = new stdClass();
$args->sticker_srl = $sticker_srl;
$output = executeQuery('sticker.updateBoughtCount', $args);
return !$output->toBool() ? FALSE : TRUE;
}
아래 쿼리가 문제인듯 한데요.. 저도 카운트가 안되서 제작자분께 문의 한 적이 있는데 특별한...
아마 서버환경에 따라 저게 안먹히는 거 같습니다.
저도 이것 좀 고칠 수 있으면 고쳐야 겠는데....
<query id="updateBoughtCount" action="update">
<tables>
<table name="sticker" />
</tables>
<columns>
<column name="bought_count" var="bought_count" default="plus(1)" />
</columns>
<conditions>
<condition operation="equal" column="sticker_srl" var="sticker_srl" filter="number" notnull="notnull" />
</conditions>
</query>
고수분께서 아마 답변을.....