| 开发者 | mralaminahamed |
|---|---|
| 更新时间 | 2026年5月11日 09:30 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp-content/plugins/warranty-cart/resources/docs/ for offline reading.
Key Features:
[warranty_cart] shortcode with grid or list layout/wp-content/plugins/warranty-cart directory, or install the plugin through the WordPress plugins screen directly.[warranty_cart] shortcode to display warranty products on any page.[warranty_cart] onto any page. Done.Use the [warranty_cart] shortcode on any page or post. The shortcode accepts one attribute, layout:
[warranty_cart layout="grid"] or [warranty_cart layout="list"]
To scope which products show (category, custom meta, etc.) use the warranty_cart_shortcode_products_query filter. See the shortcode reference.
The plugin integrates with external WooCommerce payment plugins:
This approach provides several benefits:
Yes! The plugin uses an integration architecture. Support for additional payment plugins can be added by creating new integration classes that extend the AbstractIntegration class.
After installation, click the top-level Warranty Cart menu in your WordPress admin sidebar (shield icon). This provides access to all warranty management features: dashboard, warranty product catalog, warranty records, orders, reports, settings, and tools. See the admin dashboard reference for a full tour.
The plugin automatically generates PDF certificates for purchased warranties using DomPDF. They are attached to the order completion email and can be re-downloaded from Warranty Cart → Orders. PDFs are stored under wp-content/uploads/warranties/. Toggle the feature on or off under Warranty Cart → Settings → Enable PDF certificates.
When a WooCommerce order containing one or more warranty products reaches the Completed status. The plugin listens for completion events from WooCommerce, the WooCommerce PayPal Payments plugin, and the WooCommerce Gateway Stripe plugin. Each warranty product in the order produces a row in wp_warranty_cart_warranties with status active and an expiration_date calculated from the duration.
Two daily WP-Cron events handle the lifecycle:
warranty_cart_check_expirations — marks active warranties as expired on or after their expiration_date and sends the Warranty Expired email.warranty_cart_send_reminders — emails customers N days before expiration (default 30, filterable via the warranty_cart_reminder_days filter).wp-cron.php) and add define('DISABLE_WP_CRON', true); to wp-config.php.
Go to Warranty Cart → Tools, download the sample CSV, fill it in, and upload via the Import CSV card. Each row creates a WooCommerce product with the Warranty tab pre-filled.
Common fixes:
wp_mail() is unreliable on default WordPress installs. Install an SMTP plugin (WP Mail SMTP, FluentSMTP) and connect a real transactional provider.gd or imagick extension and ~128 MB memory.wp-content/uploads/warranties/ exists and is writable by your web server user.Yes, security is a top priority: