説明
購入時の獲得ポイントを変更できます。
使い方
add_filter( 'usces_filter_get_order_point', 'my_filter_get_order_point', 10, 4 ); function my_filter_get_order_point( $point, $member_id, $mode, $cart ) { //処理 return $point; }
パラメータ
- $point
- (数値)獲得ポイント
- $member_id
- (数値)会員ID
- $mode
- (文字列)
- ‘Usualsale’:通常営業中
- ‘Promotionsale’:キャンペーンセール期間中
- ‘Maintenancemode’:メンテナンスモード中
- $cart
- (配列)カートデータ
用例
ソースファイル
usc-e-shop/classes/usceshop.class.php
関連資料
- $usces->get_order_point()