=== Free Trial Coupon for Woocommerce Subscriptions ===
Contributors: Md. Jahidul Islam
Tags: Woocommerce Subscription Trial Coupon, Trial Coupon, Free Trial Coupon, Woocommerce subscription Free trial Coupon, Extends Free trial
Requires at least: 5.9
Tested up to: 6.8.2
Stable tag: 2.0.1
Requires PHP: 7.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

"Free Trial Coupon for WooCommerce Subscriptions" adds a coupon type to extend the default trial period for subscription products.

== Description ==

**Free Trial Coupon for WooCommerce Subscriptions adds a new coupon type that allows you to extend the default trial period for subscription products. This is ideal for businesses looking to offer extended free trials to attract new subscribers. The coupon can be applied during the sign-up process, giving customers more time to evaluate your product or service before committing.

Please note that this plugin does not support renewal discounts for subscriptions in the latest version.

To use this plugin, you must have both WooCommerce and WooCommerce Subscriptions installed and activated.

> Requires Plugins:
> 1. [**Woocommerce 6.5 or greater **](https://wordpress.org/plugins/woocommerce/)
> 2. [**Woocommerce Subscriptions 6.7 or greater **](https://woocommerce.com/products/woocommerce-subscriptions/)


= Features =

1. *Add new coupon type: "Subscription Trial"*  
   A dedicated coupon type specifically for the subscription trial period. It does not include sign-up fee discounts, ensuring clear and focused functionality for trial periods.

2. *Added trial period options for the coupon type "Sign-Up Fee Discount"*  
   Extend the functionality of the "Sign-Up Fee Discount" coupon type by allowing trial period options to be configured for subscription products.

3. *Added trial period options for the coupon type "Sign-Up Fee % Discount"*  
   Enable trial period settings for the "Sign-Up Fee % Discount" coupon type, providing flexibility to offer percentage-based sign-up discounts along with trial periods.

4. *Compatible with both Simple and Variable Subscription Products*  
   All coupon types work seamlessly with both simple and variable subscription products, ensuring broad compatibility and flexibility.


= Demo =

**Demo Main Website:**  
[https://demo.coderplus.co/woo-subscription-trial-coupon/](https://demo.coderplus.co/woo-subscription-trial-coupon/)

1. **Subscription Trial Demonstration (1 Month Free)**  
   - **Coupon Code:** `TRIALDESIGN` (Used in the example demo site, but you can create your own custom coupon name).  
   - **Coupon Type:** Subscription Trial  
   - **Setup:** Go to **Dashboard → Marketing → Coupons**, and select coupon type "Subscription Trial."  
   - **Demo Link:** [Subscription Trial Demo (1 Month Free)](https://demo.coderplus.co/woo-subscription-trial-coupon/product/graphic-design-subscription/)

2. **Sign-Up Fee % Discount Demonstration (50% Discount)**  
   - **Coupon Code:** `TRIALLANG` (Used in the example demo site, but you can create your own custom coupon name).  
   - **Coupon Type:** Sign-Up Fee % Discount  
   - **Setup:** Go to **Dashboard → Marketing → Coupons**, and select coupon type "Sign-Up Fee % Discount."  
   - **Demo Link:** [Sign-Up Fee % Discount Demo (50% Discount)](https://demo.coderplus.co/woo-subscription-trial-coupon/product/online-language-lessons/)

3. **Subscription Trial Demonstration (5 Days Free)**  
   - **Coupon Code:** `TRIALSUPPORT` (Used in the example demo site, but you can create your own custom coupon name).  
   - **Coupon Type:** Subscription Trial  
   - **Setup:** Go to **Dashboard → Marketing → Coupons**, and select coupon type "Subscription Trial."  
   - **Demo Link:** [Subscription Trial Demo (5 Days Free)](https://demo.coderplus.co/woo-subscription-trial-coupon/product/tech-support-subscription/)

4. **Subscription Trial Demonstration (2 Weeks Free)**  
   - **Coupon Code:** `TRIALMEDITATE` (Used in the example demo site, but you can create your own custom coupon name).  
   - **Coupon Type:** Subscription Trial  
   - **Setup:** Go to **Dashboard → Marketing → Coupons**, and select coupon type "Subscription Trial."  
   - **Demo Link:** [Subscription Trial Demo (2 Weeks Free)](https://demo.coderplus.co/woo-subscription-trial-coupon/product/weekly-meditation-classes/)

5. **Signup Fee Discount Demonstration (Fixed Amount)**  
   - **Coupon Code:** `TRIALSEO` (Used in the example demo site, but you can create your own custom coupon name).  
   - **Coupon Type:** Signup Fee Discount  
   - **Setup:** Go to **Dashboard → Marketing → Coupons**, and select coupon type "Signup Fee Discount."  
   - **Demo Link:** [Signup Fee Discount Demo (Fixed Amount)](https://demo.coderplus.co/woo-subscription-trial-coupon/product/monthly-seo-audit-reports/)

6. **Subscription Trial Demonstration (1 Year Free)**  
   - **Coupon Code:** `TRIALBOOK` (Used in the example demo site, but you can create your own custom coupon name).  
   - **Coupon Type:** Subscription Trial  
   - **Setup:** Go to **Dashboard → Marketing → Coupons**, and select coupon type "Subscription Trial."  
   - **Demo Link:** [Subscription Trial Demo (1 Year Free)](https://demo.coderplus.co/woo-subscription-trial-coupon/product/virtual-book-club-membership/)


= Other Plugins by CoderPlus =

**Role‑Based Analytics for WooCommerce (Premium)**  
Filter WooCommerce sales reports by WordPress user roles analyze order counts, product sales, coupon usage, downloads, and compare top customer groups with built‑in leaderboards.  
🔗 [View on WooCommerce.com](https://woocommerce.com/products/role-based-analytics-woocommerce/)

**X Scroll To Top – Responsive**  
Add a lightweight, customizable scroll-to-top button to your site.  
🔗 [View Plugin](https://wordpress.org/plugins/x-scroll-to-top-responsive/)

**Logo Switcher for Divi**  
Switch logos on scroll, sticky header, or dark/light mode for Divi-based websites.  
🔗 [View Plugin](https://wordpress.org/plugins/logo-switcher-divi/)


== Installation ==

Through Dashboard

1. Log in to your WordPress admin panel and go to Plugins -> Add New
2. Type **Free Trial length Coupon for Woocommerce Subscription** in the search box and click on search button.
3. Find 'Free Trial length Coupon for Woocommerce Subscription' plugin.
4. Then click on Install Now after that activate the plugin.
5. Click on setting button & add your logo form theme customizer.

Installing Via FTP

1. Download the plugin to your hard disk.
2. Unzip.
3. Upload the "woo-subscription-trial-coupon.php" folder into your plugins directory.
4. Log in to your WordPress admin panel and click the Plugins menu.
5. Then activate the plugin.

== Frequently Asked Questions ==

= Does it work without the WooCommerce plugin? =

No, this plugin requires WooCommerce to be installed and activated in order to function.

= Does it work without the WooCommerce Subscriptions plugin? =

No, this plugin requires both WooCommerce and WooCommerce Subscriptions to be installed and activated.

= Does it support WooCommerce Subscriptions coupon types? =

Yes, the plugin works with WooCommerce Subscriptions and supports default coupon types such as "Sign-Up Fee" and "Sign-Up Fee Percentage" discounts. However, the plugin does not support renewal discounts in the latest version.

= Can I use this plugin to extend the trial period for subscriptions? =

Yes, the main feature of this plugin is to add a new coupon type that allows you to extend the trial period for subscription products, providing flexibility in offering free trials to potential customers.


== Screenshots ==

1. Go to Wordpress dashboard>woocommerce>Marketing>Coupons 
2. Create new coupon
3. Select coupon type "Subscription Trial"
4. In put your free trial length & period in "Free Trial" filed 
5. Before apply coupon code
6. After applied coupon code

== Changelog ==
= 2.0.1 - September 24, 2024 =
- Improve code quality
= 2.0.0 - September 24, 2024 =
- Refactored codebase to Object-Oriented Programming (OOP) style for better maintainability and scalability.
- Restructured plugin files to follow modern WordPress standards, improving organization and clarity.
- Added full WordPress localization support, enabling translation into multiple languages.
- Improved security with proper escaping and sanitization throughout the plugin to prevent vulnerabilities.
- Enhanced language support, including text domain setup for easier translation and integration with WordPress language packs.
- Introduced support for WordPress Plugin Dependencies, ensuring required plugins are automatically detected and prompted for installation.
- Optimized performance with better handling of coupon-related actions and WooCommerce integrations.
= 1.0.1 - Octobor 26, 2019 =
- Improve code
= 1.0.0 - Octobor 25, 2019 =
- initial release

