質問 > フロント機能 > 特定の種別の会員の送料を無料化したい |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
pipipopa |
投稿日時: 2015/3/27 0:28
対応状況: −−−
|
新米 登録日: 2010/1/17 居住地: 投稿: 8 |
Re: 特定の種別の会員の送料を無料化したい またまた、トンチンカンで申し訳ありません。
SC_CartSession.phpに以下で記述したのですが、さっぱりです。 'subtotal'を'quantity'にしても無反応。。。 記述する場所が大間違いなのでしょうか?? // 全商品の合計送料 function getAllProductsDelivFee() { // ポイント合計 $total = 0; $max = $this->getMax(); for($i = 0; $i <= $max; $i++) { $deliv_fee = $_SESSION[$this->key][$i]['deliv_fee']; $quantity = $_SESSION[$this->key][$i]['quantity']; $total+= ($deliv_fee * $quantity); if ($objCustomer->getValue("job") == 1 && $results['subtotal'] >= 10000) { //一般会員の場合 $results['deliv_fee'] = 0; }elseif($objCustomer->getValue("job") == 2 && $results['subtotal'] >= 3000) { //友の会会員 $results['deliv_fee'] = 0; $charge = 0; }elseif($objCustomer->getValue("job") == 3 && $results['subtotal'] >= 10000) { //団体職員等 $results['deliv_fee'] = 0; $charge = 0; } } return $total; } |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/22 12:56 |
Re: 特定の種別の会員の送料を無料化したい | seiyawada | 2015/3/22 21:48 |
Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/22 22:31 |
Re: 特定の種別の会員の送料を無料化したい | seiyawada | 2015/3/22 23:10 |
Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/23 8:05 |
Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/25 0:41 |
Re: 特定の種別の会員の送料を無料化したい | yuh | 2015/3/25 0:50 |
Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/25 21:09 |
» Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/27 0:28 |
Re: 特定の種別の会員の送料を無料化したい | yuh | 2015/3/27 0:56 |
Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/3/27 12:32 |
Re: 特定の種別の会員の送料を無料化したい | nanasess | 2015/3/30 16:01 |
Re: 特定の種別の会員の送料を無料化したい | seiyawada | 2015/3/30 18:36 |
Re: 特定の種別の会員の送料を無料化したい | pipipopa | 2015/4/2 21:25 |