Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
479 B
3
Indexable
Never
if (
            $lims_reward_point_setting_data && $lims_reward_point_setting_data->is_active
            && $data['grand_total'] >= $lims_reward_point_setting_data->minimum_amount
        ) {
            
            $grand_total = floatval($data['grand_total']);
            $point = (int) ($data['grand_total'] / $lims_reward_point_setting_data->per_point_amount);
            $lims_customer_data->points += $point;
            $lims_customer_data->save();
        }
Leave a Comment