Created
May 24, 2015 01:54
-
-
Save kurozumi/421d2d1d92cdd769b482 to your computer and use it in GitHub Desktop.
【EC-CUBE(2.13)】キャンセル処理以外でも使用ポイントを自動で返却させる方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ポイント使用するかの判定 | |
* | |
* $status が null の場合は false を返す. | |
* | |
* @param integer $status 対応状況 | |
* @return boolean 使用するか(会員テーブルから減算するか) | |
*/ | |
function isUsePoint($status) { | |
if ($status == null) { | |
return false; | |
} | |
switch ($status) { | |
case ORDER_CANCEL: // キャンセル | |
case 対応状況ステータス: // ここに返品処理ステータスを追加 | |
return false; | |
default: | |
break; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment