SMS plugin integration

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

From now the forum will be read-only!

This topic contains 43 replies, has 5 voices, and was last updated by WCFM Forum WCFM Forum 10 months, 2 weeks ago.

  • Author
    Posts
  • #45571
    Avatar
    hello4
    Participant

    Hello there,

    I have an issue similar to this thread:
    https://wclovers.com/forums/topic/mobile-number-verification-during-vendor-registration/

    I am developing a solution for a client based in the UAE and unfortunately Twilio doesn’t support sending SMS local numbers in the UAE. Only a handful of providers support this service and I managed to get the access to one of their plugins. If I share the plugin files with you, would you be able to check and confirm if there’s a way for it to work with WCMM/WCFM Ultimate?

    Many thanks in advance…

  • #45576
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Do you know a SMS plugin that works for UAE?

    Thank You

  • #45577
    Avatar
    hello4
    Participant
    This reply has been marked as private.
  • #45578
    Avatar
    hello4
    Participant
    This reply has been marked as private.
  • #45588
    WCFM Forum
    WCFM Forum
    Keymaster

    OK, we are checking this.

    Thank You

  • #46716
    Avatar
    hello4
    Participant

    If it’s not compatible, could you please confirm if I can use any MSG91 compatible plugins, as I’ve found out that MSG91 supports sending text messages to local numbers in the UAE?

    https://wordpress.org/plugins/search/MSG91/

    Thanks and regards,

  • #46821
    WCFM Forum
    WCFM Forum
    Keymaster

    HI,

    This plugin – https://wordpress.org/plugins/msg91-woocommerce-sms-integration-lite/

    First be sure, whether this works or not!

    Thank You

  • #46874
    Avatar
    hello4
    Participant

    It does send messages that we configure to send through that plugin but I can’t see it sending messages any WCFM or WCMM related messages.

  • #47295
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    That’s great, please add this code to your child theme’s functions.php and know me whether notification SMS are send our or not!

    add_filter( 'after_wcfm_notification', function( $author_id, $message_to, $author_is_admin, $author_is_vendor, $wcfm_messages, $message_type ) {
    	global $WCFM, $WCFMmp;
    	
    	$message_to = absint($message_to);
    	if( $message_to ) $message_to_user = 'vendor';
    	else $message_to_user = 'admin';
    	
    	$is_notification_send = isset( $WCFMmp->wcfmmp_notification_options[$message_type][$message_to_user]['sms'] ) ? $WCFMmp->wcfmmp_notification_options[$message_type][$message_to_user]['sms'] : 'no';
    	if( $is_notification_send == 'yes' ) return;
    	
    	$sms_messages  = get_bloginfo( 'name' ) . ': ' . $wcfm_messages;
    	
    	$sms_messages  = esc_sql( $sms_messages );
    	$sms_messages  = strip_tags( $sms_messages );
    	
    	$sms_number = '';
    	if( $message_to_user == 'admin' ) {
    		$sms_number   = get_option('admin_phone_number');
    	} else {
    		$store_user   = wcfmmp_get_store( $message_to );
    		$sms_number   = $store_user->get_phone();
    	} 
    	
    	if( $sms_number ) {
    		$adminfile = @wp_remote_get("https://control.msg91.com/api/sendhttp.php?authkey=". get_option('msg_api_key') ."&mobiles=". $sms_number ."&message=".urlencode($sms_messages)."&sender=". get_option('sms_sender_id') ."&route=4&country=0")['body'];
    		$output = fgets($adminfile);
    		fclose($adminfile);
    	}
    }, 50, 6 );

    Thank You

  • #47311
    Avatar
    hello4
    Participant

    First, the good news. Yes it does send notifications. Bad news is that it sends 4 messages to vendor and 1 to admin/store owner. I am pretty sure you can find a way to fix it. For the vendor’s message, just a generic message is suffice. Something like ‘You have received a new booking. Please check your account and confirm the booking.’ Admini notification isn’t a must but vendor/customer registration OTP is somewhat essential.

    Many thanks all the help so far!

  • #47324
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    “it sends 4 messages to vendor” – 4 SMS for 1 order/booking?

    Well, I gave you that code for testing purpose, if this works perfectly then we will integrate in core plugin. Hence you may also control which notification you want to keep from WCFM Admin Setting -> Notification manager

    Vendor registration OTP validation will also there.

    Between, you are testing this for UAE, right?

    Thank You

  • #47375
    Avatar
    hello4
    Participant

    Hello again,

    Yes it sends 4 messages about the same order. In my case I only want them to receive one message saying that they’ve received a ‘booking’, not an order. I guess once you integrate it, I can control these through Notification manager (currently it doesn’t display the SMS notification settings).

    Yes I am testing this for the UAE but I believe this will benefit many other countries in the region as Twilio doesn’t support sending messages to local numbers for some countries in the region.

    Thanks and regards,

  • #47449
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Don’t worry, we will integrate this in next update.

    Thank You

  • #50335
    Avatar
    d-n-13
    Participant

    Hello,

    We’re in Saudi Arabia next to UAE, we’re using https://wordpress.org/plugins/miniorange-otp-verification/ to verify customers numbers using Twilio Gateway and it is working great, now for vendors notifications, what should we do exactly ? do we use a different plugin ? does it work with Twilio as well ? I cannot find documentations or any related information in the knowledgebase

    Thank You

  • #50357
    WCFM Forum
    WCFM Forum
    Keymaster
  • #50376
    Avatar
    d-n-13
    Participant
  • #50378
    WCFM Forum
    WCFM Forum
    Keymaster

    HI,

    I tried https://wordpress.org/plugins/msg91-woocommerce-sms-integration-lite/ I don’t see options to connect twilio

    – Why you are trying to connect twillo using this?

    Well, here is twillo plugin, please test this – https://drive.google.com/file/d/1YY6Tc9Q26TVmQPgoTomH1dBPJoNqLS9w/view?usp=sharing

    Thank You

  • #50400
    Avatar
    d-n-13
    Participant

    Hi, looks like it’s working,

    I noticed some issues tho, html code showing in sms.

    check screenshot from my phone :

    1- https://www.dropbox.com/s/nu7cdamgcqrad78/SMS%201.jpg?dl=0

    2- https://www.dropbox.com/s/cc3feqojfl8fqd1/SMS%202.jpg?dl=0

  • #50415
    WCFM Forum
    WCFM Forum
    Keymaster

    HI,

    Which SMS plugin you are using now?

    Thank You

  • #50437
    Avatar
    d-n-13
    Participant

    I’m using 2 now,

    My default is https://wordpress.org/plugins/miniorange-otp-verification/ works great with OTP to verify phone numbers in woocomerce registration page + checkout page. Also, it sends orders notifications for users.

    Now I’m also using the plugin you gave me https://drive.google.com/file/d/1YY6Tc9Q26TVmQPgoTomH1dBPJoNqLS9w/view?usp=sharing to get vendor notification.

  • #50438
    WCFM Forum
    WCFM Forum
    Keymaster

    OK, so it’s twillo.

    I am checking this.

  • #50463
    Avatar
    d-n-13
    Participant

    Hi,

    my friend tried in his phone and his got same issue too, we both have Samsung S8

    Screenshot : https://www.dropbox.com/s/8qt8cunjn2lb19w/IMG-20190227-WA0035.jpg?dl=0

    HTML doesn’t work with phones

  • #50765
    WCFM Forum
    WCFM Forum
    Keymaster

    We will take care of this in next update.

    Somehow twilo function not working properly.

  • #50783
    WCFM Forum
    WCFM Forum
    Keymaster

    Please check now once.

    Thank You

  • #51398
    Avatar
    hello4
    Participant

    Hello there,

    What would you like us to test? If it’s about the MSG91 integration, do I still have to use the snippet you gave me on the 08th of February (https://wclovers.com/forums/topic/sms-plugin-integration/#post-47295)? Please clarify.

    I have also noticed that MSG91 has listed a few more plugins that we can use with their service and some of them are more up to date than the ‘MSG91 WooCommerce SMS Integration Lite’ plugin: https://help.msg91.com/article/158-how-to-send-sms-from-wordpress

    Thanks and regards,

  • #51440
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    No, pleas remove that custom code. This plugin already integrated in core.

    Thank You

  • #54499
    Avatar
    d-n-13
    Participant

    Hi @forum_wclovers

    After latest updates SMS no longer working in WCFM Dashboard.

    When i try to send SMS using the twilio plugin it works fine, but when i try to send sms from WCFM dashboard to any vendor it doesn’t work. Also vendors not getting any other notifications with SMS.

    Also in twilio dashboard i see no sms sent to any number.

  • #54591
    WCFM Forum
    WCFM Forum
    Keymaster

    We are checking this!

  • #54650
    Avatar
    d-n-13
    Participant

    Hi @forum_wclovers

    it is working now, i updated wcfm and also went to notification settings and disabled then enabled some of them. One of them fixed the issue.

  • #54684
    Avatar
    hello4
    Participant

    Hi @forum_wclovers

    Could you please check the MSG91 integration? Vendor registration OTPs are working. Direct messages are working. Booking notifications are not.

    Thanks and regards,

  • #54935
    WCFM Forum
    WCFM Forum
    Keymaster

    Sure, we will take a look at this.

  • #54976
    Avatar
    Pradeep M

    Hi @forum_wclovers,

    I just noticed that it does send text messages when a booking is paid, but not when the customer selects the Cash on Delivery option. Hope this helps to narrow down the issue.

    Best regards,

  • #55020
    WCFM Forum
    WCFM Forum
    Keymaster

    Thanks for the information!

  • #57450
    Avatar
    hello4
    Participant

    Hello @forum_wclovers,

    Any updates on this?

    Best regards,

  • #75185
    Avatar
    kunal Wasekar
    Participant

    Hey, @forum_wclovers.
    Need Help Setting up with “SMSAlert – WooCommerce”
    Providing my basic needs just like sending new order SMS to customers and vendor.
    but having some issue in billing_phone.
    WCFM is using the WordPress default billing_phone field or other for saving vendors phone number.

  • #75299
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Well, for vendors it use “Store Phone” to send SMS.

    Thank You

  • #75316
    Avatar
    kunal Wasekar
    Participant

    Thanks.

    How Can I Access Store Name In Template? πŸ™

    I tried using ” [store_name] ” but its showing Site Title Instead of products Vendor.

    Please Help. It will Be Convenient To Delivery Boy SMS Alert.

    Attachments:
    You must be logged in to view attached files.
  • #75773
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Delivery Boys off receive SMS when new order assign to them.

    Please be sure, you have latest WCFM Delivery addon, 1.1.5

    Thank You

  • #75779
    Avatar
    kunal Wasekar
    Participant

    Hello,
    Sorry But didn’t get it which msg plugin is wcfm is using to send SMS?

  • #76195
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    These are compatible SMS plugins –

    πŸ‘¨ All Users – https://wordpress.org/plugins/msg91-woocommerce-sms-integration-lite/
    πŸ‘¨ Indian Users – https://wordpress.org/plugins/sms-alert/
    πŸ‘¨ Other Users – https://woocommerce.com/products/twilio-sms-notifications/
    πŸ‘¨ Netgsm – https://wordpress.org/plugins/netgsm/

    Please check, which will work for your country!

    Thank You

  • #76198
    Avatar
    kunal Wasekar
    Participant

    thanks You so much

  • #76338
    WCFM Forum
    WCFM Forum
    Keymaster

    Welcome πŸ™‚

  • #76563
    Avatar
    kunal Wasekar
    Participant

    Sorry but Delivery boy not receiving any SMS notifications on assign, please help its an emergency. πŸ™

  • #77416
    WCFM Forum
    WCFM Forum
    Keymaster

    We have fixed this in latest update, 1.1.6

The topic ‘SMS plugin integration’ is closed to new replies.