這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Coupon Exporter for WooCommerce

描述

Coupon Exporter for WooCommerce allows you to export all your WooCommerce coupons into a CSV file. This is particularly useful for backup, analysis, or migration purposes.

Features

  • Export all WooCommerce coupons to CSV with one click
  • Includes comprehensive coupon data
  • Secure export process
  • Compatible with the latest WooCommerce version
  • Batch processing for large exports
  • Detailed error logging
  • WordPress Multisite compatible
  • PHP 8.x compatible

Export Data Includes

  • Coupon code
  • Description
  • Discount type
  • Amount
  • Expiry date
  • Minimum spend
  • Maximum usage limit
  • Usage limit per user
  • Product restrictions
  • Category restrictions
  • Email restrictions

Privacy

This plugin does not collect or store any personal data. When exporting coupons, it only processes data that already exists in your WordPress installation.

The exported CSV file may contain email addresses if they were used in coupon restrictions. Please handle the exported file according to your privacy policy and data protection requirements.

Developer Notes

The plugin provides several filters to extend its functionality:

Filters

  • rwc_coupon_exporter_csv_headers – Modify CSV headers
    php
    add_filter('rwc_coupon_exporter_csv_headers', function($headers) {
    $headers['my_field'] = 'My Field';
    return $headers;
    });

  • rwc_coupon_exporter_csv_row – Modify row data before export
    php
    add_filter('rwc_coupon_exporter_csv_row', function($row, $wc_coupon) {
    $row[] = get_post_meta($wc_coupon->get_id(), 'my_custom_field', true);
    return $row;
    }, 10, 2);

螢幕截圖

安裝

  1. Upload the plugin files to the /wp-content/plugins/rwc-coupon-exporter directory
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the WooCommerce -> Export Coupons menu to access the exporter

常見問題

Does this plugin require WooCommerce?

Yes, WooCommerce must be installed and activated for this plugin to work.

What data is exported in the CSV file?

The exported CSV includes coupon codes, descriptions, discount types, amounts, expiry dates, usage limits, and restrictions.

How does the plugin handle large numbers of coupons?

The plugin processes coupons in batches of 100 to prevent memory issues and ensure smooth operation even with large numbers of coupons.

Is the plugin compatible with WordPress Multisite?

Yes, the plugin is fully compatible with WordPress Multisite installations.

What PHP versions are supported?

The plugin supports PHP 7.4 and higher, including PHP 8.x.

評價

閱讀全部1個評價

貢獻者及開發者

“Coupon Exporter for WooCommerce” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Coupon Exporter for WooCommerce 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3.2

  • Fixed HTML code appearing in exported CSV files
  • Improved CSV file generation and download handling
  • Enhanced error handling with proper nonce verification
  • Optimized memory usage during export
  • Improved UTF-8 encoding handling

1.3.1

  • Improved code organization
  • Enhanced error handling
  • Added batch processing for large exports
  • Improved error logging
  • Enhanced accessibility with ARIA labels
  • Added developer hooks documentation
  • Added privacy section
  • Improved PHP 8.x compatibility
  • Added WordPress Multisite support
  • Code refactoring for better maintainability