Skip to content

Add SMS Notifications for Cancelled, Failed, and Refunded Orders #50

@imtiaz-pranto

Description

@imtiaz-pranto

The Texty plugin provides excellent SMS notifications for the standard, positive order flow (Processing, On-Hold, Complete). However, it currently lacks notifications for critical but less frequent order statuses like Cancelled, Failed, and Refunded.

The the addition of new SMS notification events for the following WooCommerce order statuses is needed:

1. Cancelled Order (for both Admin and Customer)

2. Failed Order (for both Admin and Customer)

3. Refunded Order (for both Admin and Customer)

These new events should follow the existing structure within the Texty settings panel, with an enable/disable toggle, a recipient selector, a message box, and a list of available variables.

1. Cancelled Order Notifications

A. For Admin

  • Event Title: Admin - When Order Status is Cancelled
  • Default State: Disable
  • Default Recipients: Administrator
  • Default Message Content:
    Order #{order_id} has been cancelled.
    Customer: {billing_name}
    Total: {order_total}
    Site: {site_name}
    

B. For Customer

  • Event Title: Customer - When Order Status is Cancelled
  • Default State: Disable
  • Default Recipients: Customer
  • Default Message Content:
    Hi {billing_name}, your order #{order_id} from {site_name} has been cancelled. If you have any questions, please contact our support.
    

2. Failed Order Notifications

A. For Admin

  • Event Title: Admin - When Order Status is Failed
  • Default State: Disable
  • Default Recipients: Administrator
  • Default Message Content:
    Payment failed for order #{order_id}.
    Customer: {billing_name}
    Total: {order_total}
    Site: {site_name}
    

B. For Customer

  • Event Title: Customer - When Order Status is Failed
  • Default State: Disable
  • Default Recipients: Customer
  • Default Message Content:
    Hi {billing_name}, your payment for order #{order_id} on {site_name} failed. Please try placing your order again or contact us for assistance.
    

3. Refunded Order Notifications

A. For Admin

  • Event Title: Admin - When Order Status is Refunded
  • Default State: Disable
  • Default Recipients: Administrator
  • Default Message Content:
    A refund has been processed for order #{order_id}.
    Customer: {billing_name}
    Refund Amount: {order_total}
    Site: {site_name}
    

B. For Customer

  • Event Title: Customer - When Order Status is Refunded
  • Default State: Disable
  • Default Recipients: Customer
  • Default Message Content:
    Hi {billing_name}, we have processed a refund for your order #{order_id} from {site_name}. The amount was {order_total}.
    

Available variables to be used:
{order_id}, {items}, {date}, {status}, {payment_method}, {shipping_method}, {transaction_id}, {billing_name}, {billing_email}, {order_total}, {shipping_total}, {tax_total}, {discount}, {site_name}, {site_url}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions