4 Ways to send woocommerce international sms

Do you want to send a notification from the woo commerce status? Then you can easily send in many ways The most important of these is that you can send custom code functions.php to include We’ll go into detail about this first, then step-by-step and we’ll try to look at the other ones. woocommerce Plugin.

sms woocommerce plugin

woocommerce international sms

advanced dynamic pricing for woocommerce

It can be done using the following hooked function: Code goes in function.php file of the active child theme (or active theme). Tested and works.

function CodemanHouse_order_status_processing($order_id) {
  $UserName = "SMS User";
  $Password = "SMS Pass";
  $StakeHolder = "User ID";
  $order = new WC_Order($order_id);
  $datalist = $order->get_data();
  $data_list = $order->get_date_modified();
  $dateArr = (array)$data_list;
  $date_modified = $dateArr['date'];
  update_post_meta( $order_id, 'date_modified_processing', $date_modified);
  $MobileNo = $datalist['billing']['phone'];
  $totalAmount = $datalist['total'];
  $TotalItem = count($order->get_items());

  $USERNAME = $UserName;
  $PASSWORD = $Password;
  $STAKEHOLDER = $StakeHolder;
  $CSMSID = $MobileNo; //"01644415771";
  $message = "Order #".$order_id.", ".$TotalItem." items ".$totalAmount." Tk. OshudPattha";

  $curl = curl_init();				
  curl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL =>
  "http://sms.Url=$USERNAME&pass=$PASSWORD&sid=$STAKEHOLDER&sms=" . urlencode($message) . "&msisdn=$MobileNo&csmsid=$CSMSID", CURLOPT_USERAGENT => 'Sample cURL Request'));	
  $resp = curl_exec($curl);
add_action( 'woocommerce_order_status_processing', 'CodemanHouse_order_status_processing', 10, 1);

We have seen one thing if you have more than one or more status, you want to send an SMS to each status under which your desired customer will have to include this code individually for each status then SMS will be sent separately for each level.

SMS Alert Order Notifications – WooCommerce

This is a WooCommerce add-on. Using this plugin, admins and buyers can receive notification about their orders via SMS using SMS alert.

When you want to receive notifications via SMS after placing an order, the Woocommerce Order SMS Notification Plugin for WordPress is very effective very well after both the buyer and seller can receive the SMS notification. The SMS notification options are very easy to customize in the admin panel.

please see the images and step by step flow working