Cari.com.tr Integration for WooCommerce
Cari.com.tr Integration for WooCommerce
Description
The Cari.com.tr Integration for WooCommerce plugin allows you to automatically transfer orders from your WooCommerce store to the Cari.com.tr accounting system.
External services
This plugin relies on the Cari.com.tr API to synchronize your WooCommerce data with the Cari.com.tr accounting system.
It connects to the endpoint https://sistem.cari.com.tr/api to create invoices and update customer records.
When an order reaches the configured order status (e.g., Completed) or is synced manually, the plugin securely sends the following data to the Cari.com.tr API:
* Order Details: Invoice prefix, order subtotal, tax amounts, and grand total.
* Customer Data: Billing name, company name, address, phone, email, and Tax/National ID numbers.
* Product Data: Line items, quantities, subtotal prices, and tax rates.
This external service is required for the core functionality of the plugin. This service is provided by Cari.com.tr. By using this plugin, you agree to their Terms of Service and Privacy Policy.
Features
- Automatic Synchronization: Automatically transfer orders to Cari.com.tr when they reach specific statuses.
- Manual Transfer: Manually sync individual or bulk orders.
- Customizable Invoice Format: Define your own invoice prefix.
- Customer Management: Automatically synchronize customer information.
- Detailed Logging: Log all API requests and responses.
- Error Management: Track and manage transfer errors.
- Modern UI: Sleek and user-friendly admin panel.
- HPOS Compatible: Full support for WooCommerce High-Performance Order Storage.
- Turkish Language Support: Fully localized (once approved, via translate.wordpress.org).
How It Works
- Install and activate the plugin.
- Go to Cari.com.tr > Settings and enter your company code (firma kodu).
- Test the connection.
- Select the order statuses that should trigger an automatic sync.
- Your orders will start syncing automatically!
Requirements
- WordPress 5.8 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
- An active Cari.com.tr account
- Cari.com.tr company code
Support
For questions or issues:
* Support Forum: https://wordpress.org/support/plugin/cari-com-tr-integration-woocommerce/
* Documentation: https://cari.com.tr/
Additional Info
Security
This plugin includes the following security measures:
* Nonce verification
* User capability checks
* Protection against SQL injection
* Protection against XSS
* Data sanitization and validation
Performance
- Minimized database queries
- Optimized API requests
- Asynchronous processing support
- Performance gains with HPOS
Compatibility
- WordPress multisite support
- WPML compatible
- PHP 8.x compatible
- WooCommerce HPOS (High-Performance Order Storage) compatible
- WooCommerce 8.x+ compatible
Developer Notes
The plugin includes hooks and filters:
Filters:
* caricomtr_invoice_data – Customize invoice data
* caricomtr_customer_data – Customize customer data
* caricomtr_invoice_serie – Customize invoice prefix
* caricomtr_invoice_number – Customize invoice sequence number
* caricomtr_logs_retention_days – Change log retention period
* caricomtr_remove_data_on_uninstall – Delete data on uninstall
Actions:
* caricomtr_before_sync – Before sync
* caricomtr_after_sync – After sync
* caricomtr_sync_error – On sync error
* caricomtr_cleanup_logs – Log cleanup task
Example usage:
add_filter('caricomtr_invoice_data', function($data, $order) {
$data['fatura']['seri_no'] = 'CUSTOM';
return $data;
}, 10, 2);
Installation
Automatic Installation
- In your WordPress admin panel, go to Plugins > Add New.
- Search for “Cari.com.tr Integration for WooCommerce”.
- Click “Install Now”.
- Activate the plugin.
Manual Installation
- Download the plugin files.
- Upload the plugin directory to
/wp-content/plugins/. - Activate the plugin in your WordPress admin panel.
After Installation
- Go to the “Cari.com.tr” menu.
- Enter your company code (Get it from Cari.com.tr > Ayarlar > İşletme Bilgileri).
- Click the “Test Connection” button.
- Configure the automatic sync settings.
- Select the order statuses you wish to sync.
Custom Fields (Optional)
For Tax ID / National ID, use one of the following fields:
* billing_tc_no
* billing_vkn
* billing_tax_number
* _billing_tc_kimlik_no
* _billing_vergi_no
For Tax Office:
* _billing_vergi_dairesi
Faq
You can select the desired order statuses on the settings page. By default, only “Completed” orders are synced.
No. The plugin keeps track of successfully synced orders and will not send them again.
You can view the complete transfer history and any errors on the Cari.com.tr > Logs page.
You can check your API connection using the “Test Connection” button on the settings page. You cannot save settings until the test is successful.
Yes. If you enable the “Sync Customer” option on the settings page, customer information will be created or updated before the invoice is generated.
Yes. The shipping fee is automatically added to the invoice as a separate line item.
Yes. You can specify a prefix for your invoice numbers (e.g., WEB, SITE, E-COM) in the “Invoice Prefix” field on the settings page.
By default, logs are stored for 30 days. This duration can be customized via a filter hook.
Yes. On the Orders page, you can select multiple orders and use the “Sync to Cari.com.tr” option from the “Bulk Actions” menu.
Yes. The plugin is fully compatible with WooCommerce High-Performance Order Storage (HPOS).
Reviews
Changelog
1.0.2
- Updated plugin name to comply with WordPress.org trademark guidelines.
- Removed placeholder content from readme.
- Improved admin menu consistency.
- Enhanced compliance with WordPress.org Plugin Directory Guidelines.
1.0.1
- Refactored code to meet WordPress.org standards (unique prefixes).
- Translated all descriptions and UI text to English as the base language.
1.0.0 – 2025-03-15
- Initial release
- Automatic order synchronization
- Manual sync feature
- Customizable invoice prefix
- Customer synchronization
- Detailed logging system
- Bulk sync support
- Modern admin UI
- API connection test
- WooCommerce HPOS compatibility