Changeset 14108 for branches/dev/data/class
- Timestamp:
- 2007/06/01 15:55:57 (19 years ago)
- File:
-
- 1 edited
-
branches/dev/data/class/SC_CartSession.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_CartSession.php
r13453 r14108 173 173 174 174 // ¥«¡¼¥È¤Ø¤Î¾¦ÉÊÄɲà 175 function addProduct($id, $quantity ) {175 function addProduct($id, $quantity, $is_campaign) { 176 176 $find = false; 177 177 $max = $this->getMax(); … … 182 182 if(strlen($val) <= INT_LEN) { 183 183 $_SESSION[$this->key][$i]['quantity']+= $quantity; 184 if($is_campaign) $_SESSION[$this->key][$i]['is_campaign'] = $is_campaign; 184 185 } 185 186 $find = true; … … 190 191 $_SESSION[$this->key][$max+1]['quantity'] = $quantity; 191 192 $_SESSION[$this->key][$max+1]['cart_no'] = $this->getNextCartID(); 193 if($is_campaign) $_SESSION[$this->key][$max+1]['is_campaign'] = $is_campaign; 192 194 } 193 195 } … … 323 325 } 324 326 327 /** 328 * ¥«¡¼¥È¤ÎÃæ¤Î¥¥ã¥ó¥Ú¡¼¥ó¾¦ÉʤΥÁ¥§¥Ã¥¯ 329 * @param void 330 * @return boolean True:¥¥ã¥ó¥Ú¡¼¥ó¾¦ÉÊͤê False:¥¥ã¥ó¥Ú¡¼¥ó¾¦ÉÊ̵¤· 331 */ 332 function chkCampaign(){ 333 $max = $this->getMax(); 334 for($i = 0; $i <= $max; $i++) { 335 if($_SESSION[$this->key][$i]['is_campaign']) return true; 336 } 337 338 return false; 339 } 325 340 326 341 }
Note: See TracChangeset
for help on using the changeset viewer.
