Plugin Directory

Changeset 3474111


Ignore:
Timestamp:
03/04/2026 02:30:50 AM (4 weeks ago)
Author:
fraudlabspro
Message:

Fixed order status change issue when SMS verified

Location:
fraudlabs-pro-sms-verification/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fraudlabs-pro-sms-verification/trunk/fraudlabspro-sms-verification.php

    r3432377 r3474111  
    33Plugin Name: FraudLabs Pro SMS Verification
    44Description: SMS verification help merchants to authenticate the client's identity by sending them a SMS for verification.
    5 Version: 1.11.3
     5Version: 1.11.4
    66Author: FraudLabs Pro
    77Author URI: https://www.fraudlabspro.com
  • fraudlabs-pro-sms-verification/trunk/includes/class-wc-fraudlabspro-sms-verification.php

    r3432377 r3474111  
    20142014                                $sms_verify['fraudlabspro_wc_email_code'] = $sms_code . '_VERIFIED';
    20152015                                update_post_meta($sms_order_id, '_fraudlabspro_sms_wc', $sms_verify);
     2016
     2017                                $order_status = (get_option('fraudlabs_pro_sms_verification_wc_change_order_when_verified') == 1) ? get_option('fraudlabs_pro_sms_verification_wc_verified_status') : '';
     2018                                if ((get_option('fraudlabs_pro_sms_verification_wc_change_order_when_verified') == 1) && $order_status) {
     2019                                    $order = wc_get_order($id);
     2020                                    $order->add_order_note(__('Change the order status when the phone number is successfully verified.'));
     2021                                    $order->update_status($order_status);
     2022                                }
    20162023                            }
    20172024                        } else {
     
    20192026                                $sms_verify->fraudlabspro_wc_email_code = $sms_code . '_VERIFIED';
    20202027                                update_post_meta($sms_order_id, '_fraudlabspro_sms_wc', $sms_verify);
     2028
     2029                                $order_status = (get_option('fraudlabs_pro_sms_verification_wc_change_order_when_verified') == 1) ? get_option('fraudlabs_pro_sms_verification_wc_verified_status') : '';
     2030                                if ((get_option('fraudlabs_pro_sms_verification_wc_change_order_when_verified') == 1) && $order_status) {
     2031                                    $order = wc_get_order($id);
     2032                                    $order->add_order_note(__('Change the order status when the phone number is successfully verified.'));
     2033                                    $order->update_status($order_status);
     2034                                }
    20212035                            }
    20222036                        }
  • fraudlabs-pro-sms-verification/trunk/readme.txt

    r3432377 r3474111  
    55Requires at least: 4.6
    66Tested up to: 6.9
    7 Stable tag: 1.11.3
     7Stable tag: 1.11.4
    88
    99Description: SMS verification help merchants to authenticate the client's phone number via SMS verification to prevent fraudulent orders.
     
    4949== Changelog ==
    5050
     51* 1.11.4 Fixed order status change issue when SMS verified.
    5152* 1.11.3 Fixed SMS Verification not working in WooCommerce Checkout page.
    5253* 1.11.2 Fixed SMS Verification issue in WooCommerce Checkout Block.
Note: See TracChangeset for help on using the changeset viewer.