{"id":574,"date":"2023-06-08T12:32:15","date_gmt":"2023-06-08T12:32:15","guid":{"rendered":"https:\/\/moceanapi.com\/blog\/?p=574"},"modified":"2023-06-12T06:56:19","modified_gmt":"2023-06-12T06:56:19","slug":"send-sms-order-notification-in-drupal","status":"publish","type":"post","link":"https:\/\/moceanapi.com\/blog\/send-sms-order-notification-in-drupal\/","title":{"rendered":"How to Send SMS Order Notification in Drupal Commerce"},"content":{"rendered":"\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#introduction\">Introduction<\/a><\/li><li><a href=\"#requirements\">Requirements<\/a><\/li><li><a href=\"#step-1-install-mocean-api-sms-order-notification\">Step 1: Install MoceanAPI SMS Order Notification<\/a><\/li><li><a href=\"#step-2-connect-mocean-api-account\">Step 2: Connect MoceanAPI account<\/a><ul><li><a href=\"#configure-telephone-number-field\">Configure Telephone Number Field<\/a><\/li><li><a href=\"#configure-mocean-api-credentials\">Configure MoceanAPI Credentials<\/a><\/li><\/ul><\/li><li><a href=\"#step-3-configure-sms-templates-and-send-sms-order-notification-in-drupal\">Step 3: Configure SMS templates and Send SMS Order Notification in Drupal<\/a><\/li><li><a href=\"#step-4-trigger-sms-notification\">Step 4: Trigger SMS Notification<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>In the world of e-commerce, timely order notifications are crucial for both businesses and customers. Drupal, a popular content management system, when combined with Drupal Commerce, it offers a powerful solution to turn your site into an E-Commerce powerhouse. Our module, <a href=\"https:\/\/www.drupal.org\/project\/mocean_sms_order_notification\" data-type=\"URL\" data-id=\"https:\/\/www.drupal.org\/project\/mocean_sms_order_notification\" target=\"_blank\" rel=\"noreferrer noopener\">MoceanAPI SMS Order Notification<\/a> allows Drupal Commerce powered online stores to send real-time order updates to customers via SMS, ensuring efficient communication and a seamless shopping experience.<\/p>\n\n\n\n<p>Our module in Drupal provides a user-friendly interface for configuring and customizing the SMS notifications. Store administrators can define specific events, such as order placement, payment confirmation, or shipment tracking, that trigger the SMS notifications. They can also tailor and personalized the content of the messages to include relevant order details like product names, quantities, and delivery information.<\/p>\n\n\n\n<p>By integrating SMS notifications into your Drupal websites, you can enhance customer engagement and satisfaction. On top of that, customers receive instant updates on their orders, enabling them to stay informed about the progress of their purchases. This reduces anxiety and fosters trust in you, ultimately leading to improved customer loyalty and repeat purchases.<\/p>\n\n\n\n<p>Moreover, SMS notifications offer advantages over traditional email notifications. Text messages have a higher open rate and faster delivery compared to emails, making them more likely to be read in a timely manner. This instant communication channel allows customers to take prompt action, such as contacting customer support or making changes to their orders if necessary.<\/p>\n\n\n\n<p>In conclusion, our module in Drupal empowers you to provide efficient and personalized order updates to your customers. By leveraging the power of SMS notifications, Drupal-Commerce powered stores can enhance customer satisfaction, boost engagement, and ultimately drive business growth.<\/p>\n\n\n\n<p>If you prefer a video tutorial that you can follow-along in your own pace, you can find it <a href=\"https:\/\/www.youtube.com\/watch?v=9CkKX2l1GJY\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"requirements\">Requirements<\/h2>\n\n\n\n<p>In order to Send SMS Order Notification, your site need to be powered by <a href=\"https:\/\/www.drupal.org\/project\/commerce\" data-type=\"URL\" data-id=\"https:\/\/www.drupal.org\/project\/commerce\" target=\"_blank\" rel=\"noreferrer noopener\">Drupal Commerce<\/a> and Commerce Shipping, a very well-known module to turn your Drupal site into an E-Commerce site with advanced functionalities.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-install-mocean-api-sms-order-notification\">Step 1: Install MoceanAPI SMS Order Notification<\/h2>\n\n\n\n<p>1. To install, you need to navigate to your Drupal site\u2019s directory in your server using a terminal<\/p>\n\n\n\n<p>2. Run the command below<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer require \"drupal\/telephone_validation:^2.4\"\ncomposer require \"drupal\/mocean_sms_order_notification:^3.0\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"829\" height=\"603\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-15.png\" alt=\"\" class=\"wp-image-577\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-15.png 829w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-15-300x218.png 300w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-15-768x559.png 768w\" sizes=\"(max-width: 829px) 100vw, 829px\" \/><\/figure>\n\n\n\n<p>After downloaded<strong>&nbsp;MoceanSMS Order Notification<\/strong>&nbsp;and&nbsp;<strong>Telephone number<\/strong>&nbsp;package in Drupal, you need to enable it in your Drupal Administration.<br>Activate MoceanSMS Order Notification:&nbsp;<strong>Manage -&gt; Extend -&gt; Search for Mocean<\/strong><br>Activate Telephone Number:&nbsp;<strong>Manage -&gt; Extend -&gt; Search for Telephone<\/strong><\/p>\n\n\n\n<p>Tick the box and click on&nbsp;<strong>Install<\/strong>. Make sure to install both&nbsp;<strong>MoceanSMS Broadcast<\/strong>&nbsp;and&nbsp;<strong>Telephone Number<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"626\" height=\"544\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-16.png\" alt=\"\" class=\"wp-image-578\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-16.png 626w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-16-300x261.png 300w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-connect-mocean-api-account\">Step 2: Connect MoceanAPI account<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-telephone-number-field\">Configure Telephone Number Field<\/h3>\n\n\n\n<p>After you\u2019ve installed &amp; Enabled MoceanAPI SMS Broadcast, you need to specify the telephone field to use for sending SMS to.<\/p>\n\n\n\n<p>Navigate to&nbsp;<strong>Manage -&gt; Configuration -&gt; People -&gt; Account Settings -&gt; Manage Fields<\/strong><\/p>\n\n\n\n<p>Click on&nbsp;<strong>Add Fields<\/strong>, select&nbsp;<strong>Telephone Number<\/strong>&nbsp;and copy the&nbsp;<strong>Machine Name<\/strong>&nbsp;and save it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"600\" height=\"382\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-2.png\" alt=\"Add required telephone field in Drupal\" class=\"wp-image-548\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-2.png 600w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-2-300x191.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-mocean-api-credentials\">Configure MoceanAPI Credentials<\/h3>\n\n\n\n<p>Navigate to&nbsp;<strong>Manage -&gt; Configuration -&gt; MoceanSMS Setting -&gt; MoceanSMS Order Notification Setting<\/strong><\/p>\n\n\n\n<p>Get your MoceanAPI Credentials from&nbsp;<a href=\"https:\/\/dashboard.moceanapi.com\/company\/apisetting\" target=\"_blank\" rel=\"noreferrer noopener\">Mocean Dashboard<\/a>. Create an account&nbsp;<a href=\"https:\/\/dashboard.moceanapi.com\/register?fr=drupal\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>&nbsp;in less than 3 minutes if you don\u2019t already have an account<\/p>\n\n\n\n<p>Enter your credentials as well as the telephone field you get from previous step<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"757\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-12.png\" alt=\"\" class=\"wp-image-566\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-12.png 646w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-12-256x300.png 256w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3-configure-sms-templates-and-send-sms-order-notification-in-drupal\">Step 3: Configure SMS templates and Send SMS Order Notification in Drupal<\/h2>\n\n\n\n<p>To configure the SMS notification event trigger, navigate to <strong>Manage -&gt; Configuration -&gt; MoceanSMS Setting -&gt; MoceanSMS Order Notification SMS content<\/strong>.<\/p>\n\n\n\n<p>By enabling the event <strong>Ready for shipping<\/strong>, we will automatically send SMS to your customer whenever their order status changed to <strong>Ready for shipping<\/strong><\/p>\n\n\n\n<p>Continue to compose the SMS message you&#8217;d like to send to your customers whenever this event is triggered, we&#8217;ve prepared a default message for you. However, you can change it to suit your liking.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"368\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-17-1024x368.png\" alt=\"\" class=\"wp-image-580\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-17-1024x368.png 1024w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-17-300x108.png 300w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-17-768x276.png 768w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-17.png 1434w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Click on <strong>Save<\/strong> after you&#8217;ve configured the SMS Message to your satisfaction.<\/p>\n\n\n\n<p>You may want to sent SMS when the order is completed, so you will need to follow below steps to enable that.<\/p>\n\n\n\n<p>Go to <strong>Manage -&gt; Commerce -&gt; Configuration -&gt; Orders -&gt; Checkout flows -&gt; Shipping (Edit)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"657\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-19.png\" alt=\"\" class=\"wp-image-582\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-19.png 779w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-19-300x253.png 300w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-19-768x648.png 768w\" sizes=\"(max-width: 779px) 100vw, 779px\" \/><\/figure>\n\n\n\n<p>Drag <strong>Completion SMS<\/strong> from <strong>Disabled<\/strong> section into the <strong>Completed<\/strong> section<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"334\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-20-1024x334.png\" alt=\"\" class=\"wp-image-583\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-20-1024x334.png 1024w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-20-300x98.png 300w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-20-768x250.png 768w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-20.png 1417w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4-trigger-sms-notification\">Step 4: Trigger SMS Notification<\/h2>\n\n\n\n<p>Now, you will want to test your configuration and witness it first-hand. Go ahead and create a user with your telephone number<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"448\" src=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-18.png\" alt=\"\" class=\"wp-image-581\" srcset=\"https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-18.png 949w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-18-300x142.png 300w, https:\/\/moceanapi.com\/blog\/wp-content\/uploads\/2023\/06\/image-18-768x363.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p>Create an order and associate it with the newly created user.<\/p>\n\n\n\n<p>Complete the entire order-process and you will get an SMS in your phone<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In the world of e-commerce, timely order notifications are crucial for both businesses and customers. Drupal, a popular content management system, when combined with Drupal Commerce, it offers a powerful solution to turn your site into an E-Commerce powerhouse. Our module, MoceanAPI SMS Order Notification allows Drupal Commerce powered online stores to send real-time&#8230;<\/p>\n","protected":false},"author":1,"featured_media":594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[23,19],"tags":[],"class_list":["post-574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-drupal","category-content-management-system-cms"],"_links":{"self":[{"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/posts\/574"}],"collection":[{"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/comments?post=574"}],"version-history":[{"count":11,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/posts\/574\/revisions"}],"predecessor-version":[{"id":636,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/posts\/574\/revisions\/636"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/media\/594"}],"wp:attachment":[{"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/media?parent=574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/categories?post=574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moceanapi.com\/blog\/wp-json\/wp\/v2\/tags?post=574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}