関数
RegisterWithAmazon::setOrderGetPointIfNewMember()
In the case of NewMember, the points awarded will be calculated and reflected in the order.
戻り値 戻り値
ファイル: src/API/RegisterWithAmazon.php
public function setOrderGetPointIfNewMember() { return function () { global $usces; // New member registration check $regnewmember = isset($_POST['regnewmember']) ? (int)$_POST['regnewmember'] : 0; if ($regnewmember === 0 && !usces_is_login()) { return; } // Acquisition of member information $usces->get_current_member(); $customer_id = $usces->current_member['id']; // Point calculation $get_point = $usces->get_order_point($customer_id); // Reflect points in the order $array = [ 'getpoint' => $get_point, ]; $usces->cart->set_order_entry($array); }; }