Discussions
Wafeq WooCommerce Plugin: Automate Invoices and Customer Details (Still in Development)
15 days ago by Ali Alaleeli
Wafeq WooCommerce Plugin: Automate Invoices and Customer Details (Still in Development)
I’ve developed a WooCommerce plugin that integrates with Wafeq, and while it's still in development, it’s working well. Here's what it does:
- Customer Details Auto-Fill: Automatically pulls customer details from the order.
- Invoice Creation: Once the order is marked as "completed," the plugin generates a draft invoice in the Wafeq system.
- Logging & Tracking: Includes logs for error tracking and action updates within the order notes.
- Contact Creation: If the customer doesn’t exist in Wafeq, a new contact is created and metadata is saved for future use, avoiding duplicate contact creation.
Current Limitations:
- The plugin is still in development and testing.
- The invoice is created as a draft and not sent automatically.
- Challenges include Wafeq's reliance on ID-based item tracking, which is more static than dynamic. This posed a challenge with WooCommerce, as customers may change their details (name, email) frequently.
You can find the source code and contribute on my GitHub.