=== WC - APG SMS Notifications ===
Contributors: artprojectgroup
Donate link: https://artprojectgroup.es/tienda/donacion
Tags: SMS notifications, SMS gateway, SMS messages
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 3.0.0
WC requires at least: 5.6
WC tested up to: 10.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add to your WooCommerce store SMS notifications to your customers when order status changed.

== Description ==
**IMPORTANT: *WC - APG SMS Notifications* require WooCommerce 2.1.0 or higher.**

**NOTE: WooCommerce - APG SMS Notifications is now called *WC - APG SMS Notifications*.**

**WC - APG SMS Notifications** add to your WooCommerce store the possibility of send SMS notifications to customer every time the order status changed. Also notifies the owner, if you desired, when the store have a new order.

= Features =
* Support multiple SMS gateways:
 * [Adlinks Labs](http://adlinks.websmsc.com/).
 * [Altiria](https://www.altiria.com/).
 * [BulkGate](https://www.bulkgate.com/).
 * [BulkSMS](http://www.bulksms.com/).
 * [Clickatell](https://www.clickatell.com/).
 * [Clockwork](https://www.clockworksms.com/).
 * [iSMS Malaysia](http://www.isms.com.my/).
 * [LabsMobile](https://www.labsmobile.com/es).
 * [MobTexting](https://www.mobtexting.com).
 * [Moplet](https://moplet.com).
 * [MSG91](https://msg91.com/).
 * [Nexmo](https://www.nexmo.com).
 * [Plivo](https://www.plivo.com/).
 * [Routee](https://www.routee.net).
 * [sendSMS.ro](https://www.sendsms.ro/en/).
 * [SIP Discount](https://www.sipdiscount.com/dashboard).
 * [SMS.CX (SMS Connexion)](https://sms.cx).
 * [SMS Discount](https://www.smsdiscount.com/dashboard).
 * [SMS Country](http://www.smscountry.com/).
 * [SMS Lane (Transactional SMS only)](http://www.smslane.com).
 * [Solutions Infini](http://www.solutionsinfini.com/).
 * [Spring Edge](http://springedge.com/).
 * [Twilio](https://www.twilio.com/).
 * [Twizo](https://www.twizo.com).
 * [VoipBuster](https://www.voipbuster.com/dashboard).
 * [VoipBusterPro](https://www.voipbusterpro.com/dashboard).
 * [VoipStunt](https://www.voipstunt.com/dashboard).
* Possibility to inform the owner or owners the store about new orders.
* Possibility to send, or not, international SMS.
* Possibility to notify to shipping phone number, if it’s different from the billing phone number.
* 100% compatible with [WPML](https://wpml.org/?aid=80296&affiliate_key=m66Ss5ps0xoS).
* Support for custom order statuses.
* Support for custom order numbers from [WooCommerce Sequential Order Numbers Pro](http://www.woothemes.com/products/sequential-order-numbers-pro/) plugin.
* Automatically inset the international prefix number, if it’s necessary, to the customer’s phone number.
* Also notified by SMS the customer notes.
* All messages are customizable.
* You can choose which messages to send.
* You can delay X minutes the message for on-hold orders. 
* You can timer every X hours the message for on-hold orders.
* Supports a large number of variables to personalize our messages: %id%, %order_key%, %billing_first_name%, %billing_last_name%, %billing_company%, %billing_address_1%, %billing_address_2%, %billing_city%, %billing_postcode%, %billing_country%, %billing_state%, %billing_email%, %billing_phone%, %shipping_first_name%, %shipping_last_name%, %shipping_company%, %shipping_address_1%, %shipping_address_2%, %shipping_city%, %shipping_postcode%, %shipping_country%, %shipping_state%, %shipping_method%, %shipping_method_title%, %payment_method%, %payment_method_title%, %order_discount%, %cart_discount%, %order_tax%, %order_shipping%, %order_shipping_tax%, %order_total%, %status%, %prices_include_tax%, %tax_display_cart%, %display_totals_ex_tax%, %display_cart_ex_tax%, %order_date%, %modified_date%, %customer_message%, %customer_note%, %post_status%, %shop_name%, %order_product% and %note%.
* You can add your own custom variables.
* Has *apg_sms_message* filter to facilitate the customization of SMS messages from third-party plugins.
* Has *apg_sms_message_return* filter to facilitate the customization of messages once they have been encoded from third-party plugins.
* Has *apg_sms_send_message* filter to prevent sending the SMS messages from third-party plugins.
* Has *apg_sms_normalize_message* filter to prevent SMS message normalization from third-party plugins.
* Has *apg_sms_phone_process* and *apg_sms_phone_return* filters to facilitate the phone number process from third-party plugins.
* Possibility to notify multiple phone numbers via filter *apg_sms_phone_return*.
* Once setup is fully automated.

= Translations =
* Español ([**Art Project Group**](https://artprojectgroup.es/)).
* English ([**Art Project Group**](https://artprojectgroup.es/)).
* French ([**Studios Jurdan**](http://www.jurdan.biz)).

= Technical support =
**Art Project Group** offers [**Technical support**](https://artprojectgroup.es/tienda/ticket-de-soporte) to configure or install ***WC - APG SMS Notifications***.

= Origin =
**WC - APG SMS Notifications** it has been programmed from the [Chirag Vora](https://profiles.wordpress.org/chirag740) request to add to WooCommerce the ability to send notifications about the order status through SMS messages.

= More information =
On our official website you can learn more about [**WC - APG SMS Notifications**](https://artprojectgroup.es/plugins-para-woocommerce/wc-apg-sms-notifications). 

= Comments =
Don’t forget to leave us your comment on:

* [WC - APG SMS Notifications](https://artprojectgroup.es/plugins-para-woocommerce/wc-apg-sms-notifications) on Art Project Group.
* [Art Project Group](https://www.facebook.com/artprojectgroup) on Facebook.
* [@artprojectgroup](https://x.com/artprojectgroup) on X.

= More plugins =
Remember that you can find more [plugins for WordPress](https://artprojectgroup.es/plugins-para-wordpress) and more [plugins for WooCommerce](https://artprojectgroup.es/plugins-para-woocommerce) on [Art Project Group](https://artprojectgroup.es) and our profile on [WordPress](https://profiles.wordpress.org/artprojectgroup/).

= GitHub =
You can follow the development of this plugin on [Github](https://github.com/artprojectgroup/woocommerce-apg-sms-notifications).

== Installation ==
1. You can:
 * Upload the `woocommerce-apg-sms-notifications` folder to `/wp-content/plugins/` directory via FTP. 
 * Upload the full ZIP file via *Plugins -> Add New -> Upload* on your WordPress Administration Panel.
 * Search **WC - APG SMS Notifications** in the search engine available on *Plugins -> Add New* and press *Install Now* button.
2. Activate plugin through *Plugins* menu on WordPress Administration Panel.
3. Set up plugin on *WooCommerce -> SMS Notifications* or through *Settings* button.
4. Ready, now you can enjoy it, and if you like it and find it useful, make a [*donation*](https://artprojectgroup.es/tienda/donacion).

== Frequently asked questions ==
= How do you set? =
To configure the plugin simply add the data provided by each SMS gateway, which vary based on it.

Also have to add the mobile phone number that’s linked to the account. 

It should specify whether we want, or not, to receive SMS notifications for each new order in the store and if we want, or not, send international SMS.

Finally it must be customized, if desired, the messages to be sent by SMS.

= Support =
If you need help to configuring or installing **WC - APG SMS Notifications**, **Art Project Group** offers its service [**Technical Support**](https://artprojectgroup.es/tienda/ticket-de-soporte). 

*In any case **Art Project Group** provides any kind of free technical support.*

== Screenshots ==
1. Screenshot of WC - APG SMS Notifications.

== Changelog ==
= 3.0.0 =
* Security improvement.
* Full code compliance with WordPress security standards.
* Small fixes.
= 2.27.0.2 =
* Small fixes.
= 2.27.0.1 =
* Small fixes.
= 2.27 =
+ Custom status fixes.
= 2.26.1 =
* Small fixes.
* Removal of obsolete SMS providers.
= 2.26.0.1 =
* Added filter *apg_sms_normalize_message*. 
= 2.26 =
* Added HPOS support.
= 2.25.0.1 =
* Header updated.
* Stylesheet updated.
* Screenshot updated.
= 2.25 =
* Added support for SMS.CX (SMS Connexion). **Update sponsored by [SMS.CX (SMS Connexion)](https://sms.cx)**.
= 2.24.4.1 =
* Small fixes.
= 2.24.4 =
* Small fixes.
= 2.24.3 =
* Small fixes.
= 2.24.2 =
* Small fixes.
= 2.24.1 =
* Added support for DLT (India) in MSG91. **Update sponsored by [Pawna lake camping](https://pawnacamp.com)**.
* Small fixes.
= 2.24.0.2 =
* Small fixes.
= 2.24.0.1 =
* Small fixes.
= 2.24 =
* Fixed a reported vulnerability.
= 2.23.1 =
* Added support for DLT (India) in Moplet. **Update sponsored by [Moplet](https://moplet.com)**.
= 2.23 =
* Added support for WhatsApp Message By WA Api. **Update sponsored by [WhatsApp Message By WA Api](https://waapi.co)**.
= 2.22 =
* Added support for sendSMS.ro. **Update sponsored by [sendSMS.ro](https://www.sendsms.ro/en/)**.
* Clickatell API update.
* SMS Lane (Transactional SMS only) API update.
= 2.21 =
* Added support for Altiria. **Update sponsored by [Altiria](https://www.altiria.com/)**.
= 2.20 =
* Small fixes.
* Now you can delay X minutes the message for on-hold orders. **Modification devised by [webdados](https://github.com/artprojectgroup/woocommerce-apg-sms-notifications/pull/8)**.
* Added unicode selection support to BulkGate. **Modification devised by [webdados](https://github.com/artprojectgroup/woocommerce-apg-sms-notifications/pull/6)**.
= 2.19 =
* Added support for pending, failed, canceled and refund order statuses.
= 2.18.2 =
* Small fixes for LabsMobile Spain.
= 2.18.1 =
* Small fixes.
= 2.18 =
* Added support for Adlinks Labs. **Update sponsored by [Adlinks Labs](http://adlinks.websmsc.com/)**.
* Added support for BulkGate. **Modification devised by [webdados](https://github.com/artprojectgroup/woocommerce-apg-sms-notifications/pull/5)**.
* Removed support for Open DND.
= 2.17.1 =
* Small fixes.
= 2.17 =
* Added support for MobTexting. **Modification devised by [laxman-ka](https://github.com/artprojectgroup/woocommerce-apg-sms-notifications/pull/3)**.
= 2.16.1.1 =
* Added *apg_sms_message_return* filter.
= 2.16.1 =
* Small fixes.
* Added support for multiple phone numbers via filter *apg_sms_phone_return*. **Update sponsored by [HaitiPay](https://haitipay.com)**.
= 2.16 =
* Added support for Moplet. **Update sponsored by [Moplet](https://moplet.com)**.
= 2.15 =
* Added support for Routee. **Update sponsored by [Routee](https://www.routee.net)**.
= 2.14.1.3 =
* Small fixes.
* Stylesheet updated.
= 2.14.1.2 =
* Small fixes.
= 2.14.1.1 =
* Fixed timer.
= 2.14.1 =
* MSGWOW API URL updated.
* Added WooCommerce 3.4 compatibility.
= 2.14.0.4 =
* Small fixes.
= 2.14.0.3 =
* Fixed timer.
= 2.14.0.2 =
* Small fixes.
= 2.14.0.1 =
* Small fixes.
= 2.14 =
* Small fixes.
* Rewrote control messages to send. 
* Rewrote settings form.
* Rewrote management of custom order statuses.
* Added timer for on-hold status messages. **Update sponsored by [Be-Wide Online Solutions](https://www.be-wide.com)**.
= 2.13.3.1 =
* Small fixes.
= 2.13.3 = 
* Renaming the plugin: from WooCommerce - APG SMS Notifications to WC - APG SMS Notifications.
= 2.13.2.1 =
* Small fixes.
= 2.13.2 =
* Small fixes.
* Added support for custom states from [WooCommerce Order Status Manager](https://woocommerce.com/products/woocommerce-order-status-manager/) plugin.
= 2.13.1.2 =
* Fixed duplicate international prefix.
= 2.13.1.1 =
* Small fixes.
* Header updated.
* Stylesheet updated.
* Screenshot updated.
= 2.13.1 =
* Added filters *apg_sms_phone_process* and *apg_sms_phone_return* to facilitate the phone number process from third-party plugins. **Modification devised by [Marco Almeida](http://www.webdados.pt/)**.
* BulkSMS API arguments fixed.
* Fixed configuration form.
= 2.13.0.3 =
* BulkSMS API arguments updated.
= 2.13.0.2 =
* Added filter *apg_sms_send_message* to prevent sending SMS messages from third-party plugins. **Modification devised by [Marco Almeida](http://www.webdados.pt/)**.
= 2.13.0.1 =
* Fixed international prefix code for LabsMobile.
= 2.13 =
* Added support for MSGWOW. **Update sponsored by [MSGWOW](http://msgwow.com)**.
= 2.12.1.3 =
* Fixed localization.
= 2.12.1.2 =
* BulkSMS API URL updated.
= 2.12.1.1 =
* BulkSMS API URL updated.
= 2.12.1 =
* Adjust to optimize WooCommerce 3.0 compatibility.
= 2.12 =
* Adjust to optimize WooCommerce 3.0 compatibility.
* New option to select the BulkSMS API URL.
* New option to select the messages to send.
* New option to send the full information from order products.
* Added Twizo sponsorship.
* Updated screenshot.
= 2.11 =
* Fixed WPML compatibility.
* Added support for Twizo. **Update sponsored by [Twizo](https://www.twizo.com)**.
= 2.10.1 =
* Support for multisite installation.
= 2.10 =
* Added notification option to multiple owners’ phone **Update sponsored by [Jeff Chambliss](http://www.stickertalk.com/)**.
= 2.9 =
* Added support for Nexmo **Modification devised by [Gine](https://github.com/artprojectgroup/woocommerce-apg-sms-notifications/pull/1)**.
* BulkSMS API URL updated.
= 2.8 =
* Fixed various errors.
* French language translation thanks to [**Studios Jurdan**](http://www.jurdan.biz).
= 2.7.11 =
* BulkSMS API URL updated.
= 2.7.10 =
* Added new option to send debug information.
= 2.7.9.2 =
* Updated support for WooCommerce Order Status & Actions Manager.
= 2.7.9.1 =
* Fixed error generated when reading shipping form fields.
= 2.7.9 =
* Added new function to send SMS messages to mobile phone from shipping form.
* Updated screenshot.
= 2.7.8.5 =
* Improved code performance.
= 2.7.8.4 =
* Updated help icon.
= 2.7.8.3 =
* Updated support for WooCommerce Order Status & Actions Manager.
= 2.7.8.2 =
* Updated support links and small updates.
= 2.7.8.1 =
* Updated support for WooCommerce Order Status & Actions Manager.
* Fixed stylesheet load.
= 2.7.8 =
* Updated support for WooCommerce Order Status & Actions Manager.
= 2.7.7 =
* Added support for Moreify. **Update sponsored by [IXOLIT GmbH](https://www.moreify.com/)**.
= 2.7.6.1 =
* Updated font package. New Google+ icon.
* Updated translations.
= 2.7.6 =
* Added support for WPML. **Modification requested on [WordPress.org](https://wordpress.org/support/topic/wpml-compatibility-66)**.
* Added support for Spring Edge. **Update sponsored by [Spring Edge](http://springedge.com/)**.
= 2.7.5.1 =
* Fixed small JavaScript bug that not select correctly the configured provider.
= 2.7.5 =
* Added support for VoipBusterPro, VoipBuster, SMS Discount y SIP Discount. **Modification devised by [Alain Aubry](http://www.casa-indigo.com/)**.
= 2.7.4 =
* Eliminated outdated code.
* Small code improvements.
* WooCommerce activation control.
* Updated screenshot.
= 2.7.3.1 =
* Replacing code.
= 2.7.3 =
* Support for Plivo. 
* Added filter *apg_sms_message* to facilitate sending SMS messages from third-party plugins. **Both modifications have been devised by [Marco Almeida](http://www.webdados.pt/)**.
= 2.7.2.1 =
* Fixed error that didn’t process the values entered in Custom variables.
= 2.7.2 =
* Support for LabsMobile Spain. **Update sponsored by [LabsMobile Spain](http://www.labsmobile.com/)**.
* New responsive style sheet.
= 2.7.1.2 =
* Support for BulkSMS new URL.
= 2.7.1.1 =
* Fixed bug that causes mass mailing to the author account.
= 2.7.1 =
* Support for WooCommerce Advance Order Status lastest version.
* Fixed small errors found.
= 2.7.0.1 =
* Fixed bug that causes mass mailing to the author account.
= 2.7 =
* Support for mVaayoo new API.
* Support for SMS Country.
* Changing the internal plugin structure to conform WordPress standards.
= 2.6 =
* Added new %order_product% variable to display the name of the first product of the order.  **Update sponsored by [Sanam Patel](http://san.am/)**.
= 2.5 =
* Support for SMS Lane (Transactional SMS only). **Update sponsored by [SMS Lane (India)](http://www.smslane.com/)**.
= 2.4.2 =
* Fixed a problem detected in mVaayoo provider.
= 2.4.1 = 
* Removed external libraries from SMS Twilio and Clockwork.
* Simplified access to Clickatell API.
= 2.4 =
* Possibility to enter a owner phone number different from that used in Twilio and iSMS Malaysia providers. **Update sponsored by [Arpit Tambi](http://www.ask-oracle.com)**.
= 2.3.1 =
* Fixed a problem detected in mVaayoo and BulkSMS providers.
* New links and icons.
* New screenshot. 
= 2.3 =
* Support for iSMS Malaysia. **Update sponsored by [Wan Nur Izzati](https://profiles.wordpress.org/wniizzati/)**.
= 2.2.2.2 =
* Changing the plugin URL in Art Project Group.
= 2.2.2.1 =
* Fixed typo in Twilio name.
= 2.2.2 =
* Add small check to verify the existence of the symbol + in Twilio phones.
= 2.2.1 =
* Fixed an error in Twilio.
* Fixed an error on processing the owner phone number.
= 2.2 =
* Added support for custom states from [WooCommerce Advance Order Status](http://codecanyon.net/item/woocommerce-advance-order-status/6222931?ref=apgmijas) plugin.
* Added support for custom order states from [WooCommerce Sequential Order Numbers Pro](http://www.woothemes.com/products/sequential-order-numbers-pro/) plugin.
* Fixed bug that erased all settings when disable the plugin.
* Minor correction that prevents the occurrence of an error code when information about the plugin was collected.
= 2.1 =
* Support for Esebun Business (Enterprise & Developers only). **Update sponsored by [Esebun Business](http://www.bz.esebun.com/)**.
= 2.0 =
* Added support for custom order states from [Custom Order Statuses & Actions](http://codecanyon.net/item/woocommerce-custom-order-status-actions/6392174?ref=apgmijas) plugin. **Update sponsored by [Chirag Vora](https://profiles.wordpress.org/chirag740)**.
* Minor fixes on code which display WooCommerce variables.
* Updated appearance of select fields.
* Updated screenshot.
= 1.6 =
* Fixed the code that translates WooCommerce variables and custom variables from other plugins. **Note: Not compatible with WooCommerce versions prior to 2.1.0.**
* Updated the list of predefined variables supported.
= 1.5 =
* Support for VoipStunt.
* CURL replaced by native WordPress functions. 
= 1.4.2 =
* Changed donation link.
= 1.4.1 =
* Commented a line that sends an automatic email to Art Project Group.
= 1.4 =
* Added support for mVaayoo.
* Fixed an error that sent duplicate customers messages with some payments.
* Added cache for external data.
* Changed donation button and link.
= 1.3 =
* Added new feature to clean the database at the plugin uninstall.
= 1.2 =
* Fixed bug detected on Twilio.
= 1.1.1 =
* Edited email notification to the author.
= 1.1 =
* Added ability to create our own custom variables.
= 1.0 =
* Added support for MSG91.
* Fixed error that allows to send international SMS without option selected.
= 0.9.2 =
* Fixed telephone numbers processing when the customer’s country doesn’t exist.
= 0.9.1 =
* Removed external image by other local.
* Fixed Clockwork coding.
= 0.9 =
* Updated stylesheet according new WordPress 3.8.
= 0.8.9 =
* Fixed Clockwork messages error.
* Small code improvements.
= 0.8.8 =
* Improved international prefix obtaining code.
= 0.8.7 =
* Improved Clockwork sending code.
* Improved Clickatell sending code.
* Improved BulkSMS sending code.
= 0.8.6 =
* Fixed message enconding.
= 0.8.5 =
* Minor code fixes.
= 0.8.4 =
* Fixed font icons bug.
= 0.8.3 =
* Fixed OPEN DND error message.
= 0.8.2 =
* Fixed message enconding.
* Added plugin score buttons.
= 0.8.1 =
* Fixed error with order status changes sending.
= 0.8 =
* Fixed error with Clockwork messages sending.
* Improved control code and phone cleaning.
* Fixed notification option for store owner.
= 0.7.1 =
* Checking configuration settings existence.
* Changed configuration screen.
* Changed plugin links.
* Updated screenshot.
* Added new links.
= 0.7 =
* Added support for OPEN DND.
= 0.6 =
* Added messages customization.
= 0.5 =
* Added support for BulkSMS.
= 0.4 =
* Small improvements in the code and fixed errata in translations.
= 0.3.1 =
* Fixed small bug in the code.
= 0.3 =
* Added support for customer notes.
= 0.2 =
* Improved code that checks the international code.
= 0.1 =
* Initial version.

== Upgrade Notice ==
= 3.0.0 =
* Security improvement.
* Full code compliance with WordPress security standards.
* Small fixes.

== Translations ==
* *English*: by [**Art Project Group**](https://artprojectgroup.es/) (default language).
* *Español*: por [**Art Project Group**](https://artprojectgroup.es/).
* *French*: pour ([**Studios Jurdan**](http://www.jurdan.biz)).

== Support ==
Since **WC - APG SMS Notifications** is totally free, **Art Project Group** only provides payment [**Technical Support**](https://artprojectgroup.es/tienda/ticket-de-soporte) service. In any case **Art Project Group** provide any kind of free technical support.

== Donation ==
Did you liked and you have proved useful **WC - APG SMS Notifications** on your website? We would appreciate a [small donation](https://artprojectgroup.es/tienda/donacion) that will help us to continue improving this plugin and create more plugins totally free for the entire WordPress community.

== Thanks ==
* To [Chirag Vora](https://profiles.wordpress.org/chirag740) for having inspired to create **WC - APG SMS Notifications**.
* To all that use it.
* All that you help to improve it.
* All you made donations.
* All that you encourage us with your comments.

Thank you very much to all!