=== Advanced Coupons – Enhanced WooCommerce Coupons & Store Credit ===
Contributors: jkohlbach, RymeraWebCo, Rymera01, smub
Tags: woocommerce coupons, bogo coupons, store credit, url coupons, bogo
Requires at least: 5.2
Tested up to: 6.8
Stable tag: trunk
Requires PHP: 5.6
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Enhance WooCommerce coupons with new coupon types, BOGO coupons, store credit, discount rules, url coupons, gift cards, loyalty program + more!

== DESCRIPTION ==

Add extended smart coupons features with Advanced Coupons! It's the free plugin that makes your WooCommerce coupons better.

= The best WooCommerce Coupons plugin for BOGO, store credit, url coupons + more! =

Every store owner deserves to have the best coupon features - it's the key to marketing your store better!

That's why we built this 100% free Advanced Coupons plugin so you can get features like BOGO coupons, url coupons, cart conditions, coupon role restrictions, store credit, and more totally free.

**ADVANCED COUPONS – THE FREE WOOCOMMERCE COUPON PLUGIN**

***<a href="https://advancedcouponsplugin.com/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Advanced Coupons for WooCommerce</a> (Free Version)*** gives you extra features on your WooCommerce coupons so they can market your store better.

= FREE EXTRA COUPON FEATURES =

We made WooCommerce coupons better so you can:

1. Run WooCommerce BOGO deals (adds a new BOGO coupon type)
1. Protect against accidental discounts via Cart Conditions (coupon rules)
1. Grant customers WooCommerce store credit to use for future purchases
1. Create coupons quickly with 100's of coupon templates
1. Refund orders to store credit to help retain customers
1. Organize your WooCommerce coupons with coupon categories
1. Apply WooCommerce coupons with a URL easily (adds coupon URL capabilities)
1. Restrict WooCommerce coupons by user role
1. Show WooCommerce coupons on the quick order preview box
1. Send coupons quickly via email or push notifications

> <strong>ADVANCED COUPONS PREMIUM ADD-ON</strong><br />
> This plugin is the free version of the highly rated Advanced Coupons Premium plugin. If you want more extended coupon features the premium version adds EVEN MORE to your WooCommerce coupons!<br /><br />Click here to compare features and purchase the <a href="https://advancedcouponsplugin.com/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Advanced Coupons for WooCommerce Premium Add-on</a>.

Learn more about our FREE VERSION coupon features:

= WooCommerce BOGO Coupon Deals =

***WooCommerce BOGO coupons***, otherwise known as Buy One Get One coupon deals, are VERY common in the offline world. So why can't you run those kinds of deals on your WooCommerce store as well?!

Now you can – Advanced Coupons WooCommerce BOGO coupon type let you easily run a Buy One Get One deal on your store.

It's a much more flexible WooCommerce coupon type compared to straight discounts that your customers will love! It's also much more profitable for your store as well when compared to standard discount coupons (read on).

= Protect Your Profits With Cart Conditions (Smart Coupon Rules) =

WooCommerce coupon misuse is a huge problem for store owners worldwide. Smart store owners are using coupon rules, what we call "Cart Conditions", to reduce this significantly. By setting the right conditions on your WooCommerce coupons you can control exactly when they are allowed to be used.

For example:
* Only apply a coupon when products from a particular category are in the cart
* Only apply a coupon after a subtotal has been reached
* Only apply a coupon when a specific product is in the cart in a specific quantity
* Only apply a coupon on their first use (check their total spend is zero!)

And there's dozens more! You can also combine and mix and match cart conditions to create more specific coupon rules.

= WooCommerce Store Credit =

***Store Credit*** can be given to any customer on your store via Coupons->Store Credit menu and in this free version of Advanced Coupons we support multiple ways to use this:

* Maintain a store credit balance per customer
* Refund orders to store credit instead of having to refund money
* Grant store credit manually to a customer via an "admin ajustment"
* Let customers use store credit on the checkout
* Customers can view their store credit balance on their My Account page

Manually granting store credit is easy! Under Coupons->Store Credit you'll see a full dashboard showing the store credit in the system. Under Customers you can lookup a particular customer account and grant store credit to them with an "Admin Adjustment". This is excellent to use in customer service situations where you might want to grant some extra credit to keep customers happy.

Refunding orders to store credit is a great way to grant a refund without having to part with actual money. They can then use the store credit towards future orders which almost guarantees you will be able to retain the customer going forward.

Finally, logged in customers will see an option on the checkout to utilize the store credit toward their order, this appears on the checkout totals box with an easy to use interface that works well with any theme and even support the legacy cart/checkout or the new WooCommerce blocks cart & checkout experience.

We're building a smarter store credit system for WooCommerce with Advanced Coupons and there will be many new free and premium features that will utilize store credit going into the future.

> <strong>ADVANCED GIFT CARDS</strong><br />
> Are you looking to sell WooCommerce gift cards? We have a sister plugin called Advanced Gift Cards plugin which integrates perfectly with this free Advanced Coupons plugin. Customers redeem gift cards directly to this free plugin's store credit feature.<br /><br />Click here to view the features and purchase the <a href="https://advancedcouponsplugin.com/?utm_source=wprepo&utm_medium=link&utm_campaign=agc" rel="friend">Advanced Gift Cards</a> plugin.

= Coupon Rules/Cart Conditions for Coupons =

Have you ever wanted to apply rules to your coupons? That's where Cart Conditions come in. Cart Conditions are like giving coupons rules to follow before it will let your customers apply them.

You can test for all sorts of coupon rules with Cart Conditions:

***Cart Items***
* Cart Quantity
* Cart Subtotal
* Cart Weight (Premium)

***Products***
* Product Quantities Exists In Cart (Premium)
* Product Stock Availability Exists In Cart (Premium)
* Customer Has Ordered Products Before (Premium)

***Product Categories***
* Product Categories Exists In Cart
* Total Customer Spend On A Certain Product Category (Premium)
* Has Ordered Product Categories Before (Premium)
* Custom Taxonomy Exists In Cart (Premium)

***Customers***
* Customer Logged In Status
* Allowed Customer User Roles
* Disallowed Customer User Roles
* Within Hours After Customer Registered (Premium)
* Within Hours After Customer Last Order (Premium)
* Total Customer Spend (Premium)
* Shipping Zone And Region (Premium)

***Advanced***
* Custom User Meta (Premium)
* Custom Cart Item Meta (Premium)

And the great thing is that you can chain coupon rules together to create complex Cart Conditions groups.

Advanced Coupons has the most powerful coupon rules engine for WooCommerce.

= WooCommerce URL Coupons (Easily Apply WooCommerce Coupons With A Link) =

The ***URL coupons*** feature lets you give your customers a coupon link to apply a coupon.

When they click the coupon URL it will apply the coupon to the cart so they don't have to type it.

Use WooCommerce URL coupons on buttons, images and text. Show them on your sidebar, ads, email marketing, blog posts – basically wherever you can put a link you can put a URL coupon!

= Smart Coupons Categories =

If you've been running a store for a while chances are you have dozens, if not hundreds or thousands, of WooCommerce coupons!

Advanced Coupons lets you get smart about how you organise your coupons by giving you the ability to put them into coupon categories.

You can name categories anything, such as "Support Coupons", "Site wide coupon deals", "BOGO coupons", "Affiliate Coupons", "Partner Coupons", "Black Friday Coupons", "Cyber Monday Coupons", "Christmas Coupons" and more.

= Restrict WooCommerce Coupons By Role =

If you run a store with multiple user roles, (for example if you're using [WooCommerce Wholesale Prices](https://wordpress.org/plugins/woocommerce-wholesale-prices/) and have wholesale customers to worry about, you can now create coupons that are just for those users.

Likewise, you can also exclude certain user roles from being able to use WooCommerce coupons. It's very flexible!

= Show WooCommerce Coupons On Order Preview Popup =

The quick order preview button on the Orders List in WooCommerce is great, but it doesn't show coupons that were used on the order.

Advanced Coupons adds a list of the WooCommerce coupons that were used on that order so you can quickly see without having to go into the Order edit screen. 

These small but helpful enhancements speed up your processes dramatically. We're always looking for ways to improve people's workflow.

= Send Coupons Quickly & Easily =

It's now easy to send coupons to your customer quickly via the Send Coupon button at the top of each coupon's edit screen.

Choose to send coupons via email (complete with a preview option so you can see what this looks like) or send coupons via push notification via our first-party PushEngage integration.

= Advanced Coupons Is Compatible With Other Plugins =

Not only is Advanced Coupons compatible with standard WooCommerce coupons, it's also compatible with lots of complementary plugins. Hundreds of shipping and payment gateways, WooCommerce Currency Switcher by Aelia (even with our free Advanced Coupons plugin!), Wholesale Suite, WPML, WooCommerce Subscriptions coupons, PushEngage push notifications, plus loads more.

If you want WooCommerce coupons that are advanced AND compatible with all the existing tools you are using then Advanced Coupons is the tool for you.

= The Best WooCommerce Coupon Plugin (3 Reasons) =

When it comes to marketing your store, standard WooCommerce coupons are too underpowered to be useful. That why you need extra WooCommerce coupons features.

The mission of Advanced Coupons is to be the undisputed BEST WooCommerce coupons features extender on the market. Here are 3 top reasons you need Advanced Coupons:

**Reason #1: WooCommerce BOGO coupons are more PROFITABLE (It's simple math!)**

Let me illustrate why WooCommerce BOGO coupons make more profit by comparing a “30% off deal” offer vs. a “Buy 2 get 1 free” offer.

*Standard 30% off coupon deal*
- 1x $100 pair of Jeans (discounted to $70 after 30% off)
- Minus $30 cost price
- *$40 profit margin*

Standard WooCommerce coupons for a “30% off deal” would take 30% off the revenue meaning its $70 profit margin would get reduced to $40 profit margin.

*WooCommerce BOGO (Buy 2 get 1 free) deal*
- 3x pairs of Jeans is $300
- Minus $90 cost price ($30 cost price each)
- Minus $100 as 1x product is free for the deal
- *$110 profit margin*

Each time the customer takes the WooCommerce BOGO deal you make $110 profit. I’ll take that any day of the week.

**Reason #2: Cart Conditions save you money by adding smart restrictions on coupon deals**

Have you ever had a customer use a coupon they weren't meant to? Did they get more discount than they were suppose to? 

Cart conditions are like a set of rules your customer needs to abide by before they can apply a coupon. And if they apply the coupon and then later become ineligible, the cart conditions will remove that coupon.

Gone are the days of losing out by having to put up with customers looking to scrape something extra. You can set up complex rules for your WooCommerce Coupons to abide by which, over time, will save you bucket loads.

**Reason #3: We're a coupon plugin dedicated to your success!**

There's lots of other "features" that I could give you as reasons of why this is the best WooCommerce coupon extension plugin. But really there's only one more reason you should care about: we care about your success!

Unlike many other coupon plugins on the market our parent company, Rymera, is a professional WooCommerce extension company. Your business will be backed by a real company with real support, not just someone writing plugins on the weekend as a hobby.

We are 100% dedicated to helping STORE OWNERS. We are also store owners just like you, we're out there making a living selling online using WooCommerce. We actually use this product ourselves!

Our team believes wholeheartedly that small stores can grow into big stores, so we've dedicated our entire company's existence to helping WooCommerce store owners.

Our mission is "To help store owners succeed with professional-grade tools that help them grow". By installing Advanced Coupons, you're taking the first step to getting to the next level with your store.

To your continued success!
~ Josh & the team at Advanced Coupons

= Other Great Uses For Advanced Coupons =

We've had a few people asking what kinds of deals & offers you can use Advanced Coupons for, here's a few ideas!

* Welcome offers
* BOGO deals
* Black Friday coupons
* Cyber Monday coupons
* Christmas coupons
* Influencer coupons
* Easter coupons
* Valentines coupons
* Free gift coupons
* Bonus item coupons
* Sample coupons
* The options are endless, here's another <a href="https://advancedcouponsplugin.com/21-ways-to-use-offers-and-coupon-deals-to-get-more-sales/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf">21 ways to use coupons to get more sales!</a>

= Black Friday, Cyber Monday =

Advanced Coupons is your secret weapon when it comes to running timed Black Friday/Cyber Monday campaigns (or any other special holiday period!).

Start and end date scheduling can be controlled down to the hour, enabling things like flash sales, special limited time offers, and more.

You can control exactly who can get these offers with loads of Cart Conditions, letting you make coupon rules for extreme targeting.

Finally, in the Premium version, you can auto apply your offers, making it super easy for your customers to smash that purchase button.

== Installation ==

1. Upload the `advanced-coupons-for-woocommerce-free/` folder to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Visit our <a href="https://advancedcouponsplugin.com/knowledgebase/getting-started-features-overview/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">getting started guide</a> to help you get up to speed

== Frequently asked questions ==

We have hundreds of guides and frequently asked questions answered in our online <a href="https://advancedcouponsplugin.com/knowledge-base/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">knowledge base</a>.

= Who should use Advanced Coupons? =

Advanced Coupons is perfect for store owners using WooCommerce that want more advanced features on their WooCommerce coupons. If you need to run more interesting deals like BOGO deals and you want features like being able to restrict when and how a coupon is applied then Advanced Coupons is for you.

= Do I need to have coding skills to use Advanced Coupons? =

Absolutely not. You can create WooCommerce coupons easily through the normal interface and there is nothing complex about the plugin that would require you to have coding skills.

That said, there are a few features that are designed specifically to help developers and web designers deliver complex coupons for their store owner clients. But you still don't need heaps of extra knowledge to make them work. We're dedicated to being the friendliest and best WooCommerce coupons plugin.

= What extra things can I do with my WooCommerce coupons with Advanced Coupons? =

Advanced Coupons lets you create lots of new and interesting WooCommerce deals. Here are some extra features you can expect on your WooCommerce coupons with our full range of tools:

* WooCommerce BOGO coupons
* Add Products on apply
* Cart conditions (advance coupon rules)
* WooCommerce Store Credits
* Schedule WooCommerce coupons
* Auto apply WooCommerce coupons
* URL coupons
* Shipping coupons
* Run a loyalty program
* Sell WooCommerce gift cards

= What Cart Conditions or Coupon Rules can I add to my WooCommerce coupons? =

You can use Cart Conditions to test the current customer's shopping cart, their past interactions with your store and things about their user account. All of this happens as the customer attempts to apply the WooCommerce coupons to their cart.

Cart Conditions are also compatible with our Premium features for auto applying coupons and showing 1-click apply notices.

* Cart Condition: Product Category Exists In Cart
* Cart Condition: Customer Logged In Status
* Cart Condition: Allowed Customer User Role
* Cart Condition: Disallowed Customer User Role
* Cart Condition: Cart Quantity
* Cart Condition: Cart Subtotal
* Cart Condition: Product Quantity In The Cart
* Cart Condition: Custom Taxonomy Exists In The Cart
* Cart Condition: Within Hours After Customer Registered
* Cart Condition: Within Hours After Customer Last Order
* Cart Condition: Custom User Meta
* Cart Condition: Custom Cart Item Meta
* Cart Condition: Total Customer Spend
* Cart Condition: Has Ordered Before
* Cart Condition: Shipping Zone And Region

Some of these are only available in the premium version, but many are included in the free version.

= Can I run WooCommerce BOGO deals across multiple products or product categories? =

In the free version you can only run WooCommerce BOGO deals with a single product as the trigger and a single product as the apply product. They don't have to be the same product.

In the premium version you get much more advanced WooCommerce BOGO functionality with the ability to apply BOGO deals across multiple products as the trigger and apply type and even whole product categories.

* WooCommerce BOGO using a Specific Product
* WooCommerce BOGO using Any Combination Of Products
* WooCommerce BOGO using Product Categories
* WooCommerce BOGO using Any Product

Combined, these different BOGO features can make running WooCommerce BOGO deals across large amounts of products a breeze.

= Can I customise the message a user sees if a coupon fails to apply? =

Yes, in Advanced Coupons you can set what we call a Custom Non-Qualifying Message. This is shown to the customer when a coupon is not applied. You'll find it under the Advanced Settings on Cart Conditions when you edit a coupon.

= Can I organize my WooCommerce coupons into categories?  =

Yes, coupon categories let you organise you coupons into distinct categories which makes it much simpler to manage your coupons when you have been running your store for a long period.

We suggest creating as many WooCommerce coupons categories as you need to separate the different types of coupons you and your team create.

= How do I give store credit to a customer? =

Store credits are extremely easy to grant from an admin perspective. Simply visit Coupons->Store Credits, then click on the Customers tab. You'll see an option there to search for your customer.

Once you have the customer, you can adjust their store credit balance. This is called an "Admin Adjustment" and is just one way to give store credits to your customers.

In this free plugin, you can also grant store credit to a customer via refunds.

Simply choose the "Refund to Store Credit" option when on the Order Edit screen as you're refunding an order. The customer will then be able to utilize this store credit on their next order with you.

= Is Advanced Coupons translation ready? =

Yes, Advanced Coupons for WooCommerce is fully i18n compliant and ready for translation. We have a number of translations included with the plugin. We're also fully integrated with WPML multi-lingual plugin.

= I'd like access to all features, how can I get them? =

Purchasing an Advanced Coupons Premium license gives you access to the full feature set of Advanced Coupons. This includes automatic updates, priority support, and more!

You can also explore our other compatible extensions as well:

* <a href="https://advancedcouponsplugin.com/pricing/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Advanced Coupons Premium</a>
* <a href="https://advancedcouponsplugin.com/pricing/loyalty/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Loyalty Program for WooCommerce</a>
* <a href="https://advancedcouponsplugin.com/pricing/gift-cards/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Advanced Gift Cards</a>

= How can I report security bugs? =

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage and handle any security vulnerabilities. [Report a security vulnerability.](https://patchstack.com/database/vdp/9e5fb91f-72fc-4bfa-afe5-949d9d02c27e)

== Screenshots ==

1. Advanced Coupons Dashboard Statistics
2. New BOGO deal coupon type
3. Coupon role restrictions
4. URL Coupons
5. Advanced Coupons Settings
6. Store Credits dashboard
7. Store Credits My Account area
8. Coupon categories
9. Cart Conditions (Coupon Rules)
10. Custom Non-qualifying Messages
11. Advanced scheduling
12. Exclude coupons from working with each other
13. Exclude specific customers from using coupons

== Notes ==

Advanced Coupons is absolutely, positively the <a href="https://advancedcouponsplugin.com/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend" title="Best WooCommerce Coupons Plugin">best WooCommerce coupons plugin</a> on the market. It is both easy and powerful.

We took the pain out of creating advanced WooCommerce coupon deals and made it easy to achieve your marketing goals. Check out all <a href="https://advancedcouponsplugin.com/pricing/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Advanced Coupons features</a>.

Also, I'm the founder of <a href="https://wholesalesuiteplugin.com/?utm_source=wprepo&utm_medium=link&utm_campaign=acfwf" rel="friend">Wholesale Suite</a>, the biggest wholesale solution for WooCommerce. I'm obsessed with helping store owners grow their stores and I hope you enjoy using Advanced Coupons.

Thanks,
Josh Kohlbach (CEO of Rymera Web Co)

== Changelog ==

= 4.7.0 =
* Bug Fix: BOGO GET item added all available stock instead of the defined quantity when stock management was enabled
* Bug Fix: Unable to uncheck the "automatically add deal product" option when selecting BOGO Specific Product or Same Product
* Bug Fix: Unable to click the button on the "Non-Qualifying coupon" cart condition error notice
* Bug Fix: A used coupon showed an incorrect remaining message on the "My Coupons" page
* Bug Fix: WPML Multicurrency Integration: Store credits did not apply correctly on secondary currencies
* Feature: Added a new coupon popup (Choose Manual Creation or Coupon Template)
* Improvement: Allowed BOGO condition Product Categories to select a category with no products
* Improvement: Displayed the store credit expiry date in the customer's Store Credits dashboard

= 4.6.9 =
* Bug Fix: BOGO discount is not applied on translated cart/checkout pages
* Bug Fix: BOGO discount not applying on wholesale products
* Bug Fix: Editing the date on a notification that has been shown will not work due to filter logic
* Bug Fix: Notification is fetched incorrectly due to long transient expiration time (1 day)
* Bug Fix: Restoring an expired notification is not yet possible
* Bug Fix: Critical error due to incorrect usage of precision functions
* Bug Fix: Manually updating cart quantity without refreshing page does not re-calculate coupon validity
* Bug Fix: Advanced Coupons by category block content shows warning
* Bug Fix: Store credit does not apply in non-default currency when WPML and Aelia are active
* Feature: Coupon Template: Add search filter for coupon templates
* Feature: Coupon Template: Add sorting for coupon templates 
* Feature: Custom taxonomy feature for grouping coupons based on the features they use
* Improvement: Add option to hide expired coupons in Advanced Coupons block
* Improvement: Add coupon count under feature term in usage tracking data
* Improvement: Feature Custom Taxonomy: Add required filters for premium plugin
* Improvement: Option to hide store credits on My Account if zero balance

= 4.6.8 =
* Bug Fix: BOGO discount is not applied on wholesale product until page is refreshed
* Bug Fix: BOGO price is not updated when the coupon is removed on the legacy cart
* Bug Fix: BOGO causing wrong calculation in cart when WWPP quantity based wholesale feature is set
* Bug Fix: PHP Warning: Attempt to read property "post_content" on null
* Feature: Store credits 3rd party importer tool
* Improvement: Add support for the new WC email improvements

= 4.6.7 =
* Bug Fix: Coupon's can't be saved when the Affiliate WP plugin is active
* Bug Fix: Incorrect success message shown when store credit conditions are not met
* Bug Fix: SSI Conflict: HTML Comment <!--#url_coupon_data--> Triggers Server Error on SSI-Enabled Apache Hosts
* Bug Fix: Store Credit Not Recorded After Refunding Order to Store Credits
* Improvement: Add way to assign a category to a coupon that is created/updated via the WC REST API endpoint
* Improvement: Coupon templates: add support for product attributes usage restriction fields
* Improvement: Create a shortcode for displaying the my account store credit page content
* Improvement: Option To Use Parent Product Instead of Listing the Each Variants
* Improvement: Option to enable deducting store credit payment value from the order total when fetched for accounting software

= 4.6.6 =
* Bug Fix: Always use regular price for "all coupon types" is not calculating discount when a discounted product from an add-product coupon applied
* Bug Fix: Automatic refund email does not include refund type (Store Credits)
* Bug Fix: BOGO: Critical error when "Customer Buys" products are removed from the cart while the BOGO coupon is still applied to the cart
* Bug Fix: Can't use store credits with WooCommerce Subscription
* Bug Fix: Duplicated Queries on in app notices
* Bug Fix: Exclude gift card products from Customer Gets of BOGO - Specific Product/s
* Bug Fix: Unclaimed store credits from deleted customers are not deducted from the unclaimed amount on the Store Credits dashboard
* Feature: Add ability to send push to a specific user via Pushengage
* Improvement: Display Store Credits notes icon on My Account and Store Credit Dashboard
* Improvement: Getting started admin page
* Improvement: Hide expired coupons in Advanced Coupons by Category gutenberg block
* Improvement: Remove the target=“_blank” from the View Order link

= 4.6.5.2 =
* Improvement: Security and code improvements

= 4.6.5.1 =
- Bug Fix: Remove the string "or discount" from the cart subtotal coupon editor
- Bug Fix: Store Credit not computing properly with WooCommerce Subscription

= 4.6.5 =
- Bug Fix: Coupon Template not working with "Total Customer Spend" cart condition
- Bug Fix: Coupon Template: The required enable scheduler field is not showing the validation when coupon template is created
- Bug Fix: Dates on the store credit history are not translatable
- Bug Fix: Extra characters showing on "Cart Subtotal" condition on the Coupon Templates creation screen
- Bug Fix: Fix links to Advanced Coupons website in coupons dashboard license activation status
- Bug Fix: Integration - Always use regular price for "fixed product discount" & "percentage discount" are not working with subscription products
- Bug Fix: JS Error When coupon code is exceeding certain characters
- Bug Fix: Store credit discount amount is wrong when "Prices entered with tax" setting is set to include tax
- Bug Fix: Pushengage: Fatal error when trying to send push notification for account that has no segment setup yet
- Feature: PushEngage: Add push notification option with plugin install and activation
- Feature: PushEngage: Develop and test dynamic notification preview
- Feature: PushEngage: Integrate segment selection and message customization
- Feature: PushEngage: Set up API integration for notification broadcast
- Improvement: Advanced Coupons by Category Block: Make the coupons stack on mobile
- Improvement: Store Credit HTML elements still showing when store credit Is disabled

= 4.6.4 =
- Bug Fix: Always use regular price for all coupon types is showing the sale price for specific condition
- Bug Fix: Always use regular price for all coupon types is showing the sale price on the cart block
- Bug Fix: Arrow entities are broken on in-app notification buttons
- Bug Fix: Coupon Template: couldn't create the coupons when the field is non required for the products and product categories usage restrictions
- Bug Fix: Fix links to Advanced Coupons website in some locations
- Bug Fix: Integration - CheckoutWC - Store Credit Field Doesn't Show Up
- Bug Fix: The title for in-app notifications is not being displayed in the coupon dashboard page
- Bug Fix: scripts and styles loaded by Vite are not enqueued properly when using a CDN
- Improvement: Add a Filter for is_current_page_using_cart_checkout_block function
- Improvement: Add the upsell for "Products Attributes" and "Exclude Product Attributes"

= 4.6.3.2 =
- Bug Fix: Store Credit Should Only Applied to Orders not on the Subscription

= 4.6.3.1 =
- Bug Fix: Old and expired auto-apply coupons are applied on the cart

= 4.6.3 =
- Bug Fix: Cart & Checkout Block: The cart condition non-qualifying message won't show up when the coupon is auto-applied
- Bug Fix: Coupon Template: Disable the "Allow Free Shipping" when the setting is set to disabled
- Bug Fix: Coupon Template: Disable the "Date Range Schedules" when it disabled from server
- Bug Fix: Coupon Template: Disable the "Enable Coupon URL " when it disabled from server and from the plugin
- Bug Fix: Coupon Template: Hide option to select how many coupons to display on archive pages
- Bug Fix: Coupon Template: debug log found for PHP Warning Undefined variable $type 
- Bug Fix: Coupon Template: the coupon start and expiry date shows invalid date for filled by the user template
- Bug Fix: Coupon Template: usage restrictions for "individual use only" and "exclude sale items" do not generate valid data when disabled from the coupon template
- Bug Fix: Dashboard: Wrong Uses Count and URL
- Bug Fix: Refund to Store Credit: Line Items Data Are Not Attached Properly to The Refund Request in JS
- Bug Fix: Remove unnecessary <label> element in store credit button component
- Feature: Ability to add notes/comments on Store Credit popup to track why adjustment was made
- Feature: Coupon Templates cart condition feature support
- Improvement: Coupon Template: Make the coupon template generated data more readable 

= 4.6.2 =
- Bug Fix: Always use regular price doesn't work for BOGO coupon 
- Bug Fix: BOGO adjusted price doesn't respect the tax setting
- Bug Fix: Cart block: multiple cart requests with dummy update cart even when the coupon is not BOGO
- Bug Fix: Fatal error happens when applying the acfw_filter_amount filter on a currency value that's possibly null
- Bug Fix: Frontend JS are not enqueued properly when siteground speed optimizer combine JS feature is enabled
- Feature: Set a minimum order total allowed after store credit deduction
- Feature: Coupon Templates (create coupons via templates)
- Improvement: Add customer filtering on store credits dashboard
- Improvement: Add a remove button on applied store credit in the checkout page
- Improvement: Ensure that all of promo banners are dismissed properly
- Improvement: Option to always show store credits
- Improvement: Tweak review notice to be smaller

= 4.6.1.1 =
- Bug Fix: BOGO discount summary showing error when auto apply option is active
- Bug Fix: Invalid coupon error when sending coupon email
- Bug Fix: The exclude wholesale items option is enabled by default on new and existing coupons

= 4.6.1 =
- Bug Fix: Checkout Block: Checkout page showing error notice if applying store credit with value of 0
- Bug Fix: Cart/Checkout Block: Remove the BOGO deal notice automatically when the BOGO coupon is removed from the cart or checkout block
- Bug Fix: Cart/Checkout Block: Show the BOGO deal notice automatically when the 2nd BOGO coupon is applied to the cart or checkout block
- Bug Fix: Checkout Block: Store credit form should hidden for Guest user
- Bug Fix: invalid post type when accessing coupon admin page and the coupons feature is disabled in WC
- Bug Fix: PHP warning is logged when adjusting customer points in the admin
- Bug Fix: Unable to set the "Display notice when auto applied" setting on coupon editor
- Feature: QR codes for URL coupons
- Improvement: add the history table in the store credit admin dashboard
- Improvement: Fix cart condition naming style
- Integration: Add feature to allow restricting discounts for wholesale products

= 4.6.0.2 =
- Bug Fix: Blank coupon is applied when applying store credit (before tax) and can't complete the checkout process

= 4.6.0.1 =
- Bug Fix: Plugin can't be deleted after 3.6.0 update
- Bug Fix: The cart/checkout blocks incompatible notice is not removed

= 4.6.0 =
- Bug Fix: Always use regular price feature doesn't work for BOGO coupon 
- Bug Fix: Checkout Block: Store credit form should be hidden for guest users
- Bug Fix: Checkout Blocks: Show an error notice on Checkout Block page when the new calculated cart total value changes
- Bug Fix: Error is thrown when a numeric coupon code is applied in the cart
- Bug Fix: Store Credit Form Inner Element not Visible or cut off on some device or theme
- Bug Fix: Store credit entries are not deleted when the user is permanently deleted
- Bug Fix: Unable to show the "Day/Time Schedules" error message when the "Date Range Schedules" is not set
- Feature: Display the BOGO Deals discount summary in the cart/checkout blocks
- Feature: Show the BOGO Deal notice in the cart/checkout blocks
- Feature: Show the cart condition notification in the cart/checkout blocks
- Feature: Show the custom “Schedule Expire Error Message” in the cart/checkout blocks
- Feature: Integration with WooPayments plugin multi-currency feature

= 4.5.9.2 =
- Bug Fix: Checkout blocks: Show/Hide the "Store Credits" form depending on the coupons settings
- Bug Fix: frontend JS packaged with Vite are not loading due to missing HTML 5 script support

= 4.5.9.1 =
- Bug Fix: The applied store credit added via checkout block page is not added when the order is purchased (for after tax implementation)
- Bug Fix: Checkout Block: Store credit amount is not deducted and the coupon store credit will be added with the previously applied store credit (for before tax and shipping implementation)
- Bug Fix: Checkout Block: Unable to fully pay the order with store credit for after tax and shipping implementation

= 4.5.9 =
- Bug Fix: The coupon related Gutenberg blocks are missing some JS dependencies
- Bug Fix: Checkout block: Store credits amount is not refreshed when a gift card is redeemed
- Bug Fix: The store credit history table in the frontend is not showing up
- Feature: Add button to refund the applied store credits discount in the order
- Feature: Checkout Block: add support for the apply store credit form
- Improvement: Add filter to support custom statuses for appyling store credits in order

= 4.5.8.3 =
- Bug Fix: Dashboard breaks when using french as the default language

= 4.5.8.2 =
- Bug Fix: The BOGO deal notice does not show up for the 2nd applied BOGO coupon
- Bug Fix: BOGO is not implemented when coupon is applied via FunnelKit's side cart plugin

= 4.5.8.1 =
- Bug Fix: Store Credits on Checkout Page not opening or expanding for input
- Improvement: Turn off integrity check on JS/CSS files loaded by Vite and add a setting to turn it on

= 4.5.8 =
- Bug Fix: Always use regular price doesn't work for variable product
- Bug Fix: New feature fields added in the general tab are not showing up when BOGO Deals discount type is selected
- Bug Fix: Store credit redeem form on a checkout page is gone when FunnelKit Funnel Builder is active
- Bug Fix: The Missing plugin dependency notice is not showing the missing plugin's name
- Bug Fix: Wrong calculation for Amount Discounted and Discounted Order Revenue when using AELIA
- Feature: Cart & Checkout Block : Cart Page - BOGO Coupon with add Product Quantity Change
- Improvement: Declare incompatible with WC Cart/Checkout blocks
- Improvement: Display incompatibility notice for WC 8.3 (Cart and checkout blocks)
- Improvement: Store Credit Dashboard: Ability to Sort or Filter Active Balance

= 4.5.7.1 =
- Bug Fix: Fatal error when trying to delete the plugin

= 4.5.7 =
- Bug Fix: Default coupon category global setting is showing the category ID not the category name
- Bug Fix: Deprecated message is logged when running with PHP version 8.2
- Bug Fix: WOOCS - BOGO doesn't show the correct price in other currency
- Feature: Revamp the checkout UI and FunnelKit integration
- Feature: Add setting to set the store credit expiry
- Improvement: Add +/- prefix to store credit entries in the "Coupons > Store Credits" admin page history table.
- Improvement: Add +/- prefix to store credit entries in the "My Account > Store Credits" page history table. 
- Improvement: Make the license page tabbed for each plugin
- Improvement: REST API: remove same site validation in all requests

= 4.5.6 =
- Bug Fix: Coupon metadata are saved multiple times
- Bug Fix: The upgrade button is displayed below the logo
- Feature: Adopt new WooCommerce High-Performance Order Storage (HPOS) system
- Feature: Allow coupons to be applied via query string and redirect to the same page
- Feature: Automatically remove coupons for failed/cancelled orders
- Feature: Store Credit history on my account page
- Improvement: Add the upgrade to premium CTA button at the top of the page in the "Upgrade to premium" page
- Improvement: Add upsell for the cashback coupon discount types
- Improvement: Apply unified package.json and node_modules setup for all JS scripts in the plugin
- Improvement: Set a Maximum Limit for Repeated BOGO Deals
- Improvement: Uncanny Automator: update source option when plugin is activated for already installed plugin.

= 4.5.5 =
- Bug Fix: Store Credit doesn't add the tax to the subtotal value
- Feature: Option to modify the applied store credits discount on pending orders
- Improvement: Add the new "Automations" tab on the Store Credit Dashboard with a one-click install option for Uncanny Automator
- Improvement: adjust advanced coupons logo styling

= 4.5.4.2 =
- Bug Fix: Database error log found for checking the balance for all customer's when the site has additional prefix in the DB
- Bug Fix: Email content is pushed to the rightmost of the page after updating WC to 7.4
- Bug Fix: The coupon notification that appeared on the coupon-related page disappeared after the 4.5.4 update

= 4.5.4.1 =
- Bug Fix: Applying the invalid coupon with URL Coupon showing the wrong notice since ACFWF 4.5.4

= 4.5.4 =
- Bug Fix: Always use regular price should only working for the BOGO "Get" products only
- Bug Fix: Change pdf optin endpoint on settings
- Bug Fix: Redirect to URL if invalid coupon is visited is not working
- Bug Fix: The checkout page is not refreshed when applying for store credits before or after tax changes
- Bug Fix: URL Coupons: User is redirected to the login page when redirect to URL is set to an external site
- Bug Fix: WPML: coupon URL for other languages doesn't work when language URL format is set to directories
- Feature: Allow Administrator or Shop Manager to Apply Store Credit to Orders in Backend
- Feature: Delete ACFWF plugin from plugin list should delete its data
- Improvement: Add custom validation scripts to URL Coupons redirect settings
- Improvement: Add place holder for cart conditions premium settings when premium plugin is deactive
- Improvement: Add tax option to subtotal cart condition
- Improvement: Show admin notices count on top level menu instead of the dashboard submenu
- Improvement: Upgrade to premium notification bar in the coupon related admin pages

= 4.5.3 =
* Feature: Add option to always use regular price for general percentage discount when sale price exists
* Feature: Send a Coupon
* Improvement: BOGO: improve text descriptions for all "Buy" and "Get" types
* Improvement: Advanced Gift Cards upsell admin page
* Bug Fix: Fatal Error when using WooCommerce REST API
* Bug Fix: Compatibility with WooCommerce PDF Invoices & Packing Slips
* Bug Fix: Fatal error when applying store credits before tax and a currency conversion plugin is active
* Bug Fix: The store credit admin adjustment increase should add the sources to the related field only
* Bug Fix: Multisite: license page is empty when only Loyalty Program tab is available

= 4.5.2 =
* Improvement: Store Credits: add a filter for store credit decrease action types
* Improvement: Add store credit to order quick view
* Improvement: Store credit: add a setting to set when store credits payment are applied (before or after tax)
* Improvement: Create equivalent shortcodes for all coupon gutenberg blocks
* Bug Fix: The Store Credit tab on global coupon settings should be hidden when the Store Credit module is disabled
* Bug Fix: Store Credit: Undefined text appears when using comma as decimal separator
* Bug Fix: The store credits total paid amount is wrong when removing a product from the cart after applying the store credits discount
* Bug Fix: Failed and cancelled orders should not deduct store credit

= 4.5.1.1 =
* Improvement: Deduct store credits payment from the set order total

= 4.5.1 =
* Feature: URL Coupons: option to redirect back to origin page where link is present
* Improvement: Change endpoint slug for store credit to the more succinct /my-account/store-credit/
* Improvement: Dashboard: update relative report widgets to include BOGO, Add Products and Shipping Overrides discount values
* Improvement: Add notice type field in cart condition non-qualifying settings for auto applied coupons
* Improvement: checking if result is actually 0 or false when using wpdb::update
* Bug Fix: Scheduler: the active date should updated when the start date or expiry date are updated
* Bug Fix: Some texts on Store Credit UI are not translatable
* Bug Fix: PHP logs exist for view-generic-notice when wwp plugin is active

= 4.5.0.2 =
* Bug Fix: The license field width is too small

= 4.5.0.1 =
* Bug Fix: The getting started notice dismiss AJAX request has no nonce value
* Improvement: Change review ask format to a simple admin notice style
* Improvement: Indicate that a refund is done via store credits
* Improvement: Set the method for implementing store credits as payment in checkout as publicly callable

= 4.5 =
* Feature: Move the current scheduler premium feature to the free plugin
* Improvement: Add upsell for the new day/time schedule section

= 4.4.1 =
* Bug Fix: Dashboard: Hide Store Credit section header from the dashboard when the module is disabled
* Bug Fix: Dashboard: The discount calculation should calculate values back to the original currency for Multicurrency
* Bug Fix: The admin notices should have correct CSS color
* Bug Fix: WPML: settings page won't load when the language URL format is set to "Different languages in directories"
* Bug Fix: Dashboard: The license status was not updated after the licenses were updated due to cache

= 4.4 =
* Improvement: BOGO: Change Product Categories UI to allow multiple categories in one row and only have one row allowed

= 4.3.4 =
* Bug Fix: Error on Order Details and Payment Section in Checkout Page when using Auto Apply Coupon

= 4.3.3 =
* Improvement: Dashboard: Notices section
* Improvement: Dashboard: Add section header to dashboard widget types to help with visual separation
* Bug Fix: WPML: String translations are not working
* Bug Fix: BOGO Deals coupons are showing the amount value as 0.00$ on the order details (backend)

= 4.3.2 =
* Feature: Loyalty Program upsell page on Coupons menu
* Improvement: Upsell: Link all instances of Advanced Coupons logo with premium link
* Improvement: Add Virtual Coupon Upsell to ACFWF plugin under "Coupons > Settings > Modules"
* Improvement: URL Coupons: Add button to copy the URL to the clipboard
* Improvement: Change the Free Guide offer on the Settings->General tab to accept first name & email instead of just a link to our landing page
* Improvement: Add upsell for Cart Condition: WC Allowed and WC Disallowed WC Membership options when WC Membership plugin is active

= 4.3.1 =
* Bug Fix: Multisite: PHP warning shows up when viewing sites list

= 4.3 =
* Feature: New Advanced Coupons Dashboard

= 4.2.1 =
* Improvement: Adjust the help content API link to new base url
* Improvement: Allow Gift Card Products to be selected on BOGO and Add Product feature
* Improvement: Add Upsell for "Allowed Customers" restriction on ACFWF plugin under "Usage Restrictions" tab 
* Bug Fix: Can't refund order that is bought with Store Credit
* Bug Fix: Rounding issue when applying store credit on the checkout page
* Bug Fix: WPML: search products AJAX is not returning the product ID for the default language when the product was added using a secondary language first

= 4.2 =
* Feature: Add option to always use regular price when sale price exists
* Improvement: Add css classes for WooCommerce coupon type to coupon gutenberg blocks to help improve styling targeting
* Improvement: Pass the URL Coupon attributes to the redirect URL and remove blog permalink structure from the coupon permalink structure
* Improvement: Create duplicate Store Credits REST API endpoints to add support for WC Basic Auth
* Improvement: Store Credits: Option to hide store credits section on checkout screen if the customer currently has no store credit balance
* Improvement: Feature description improvement for "Customer Buys"

= 4.1 =
* Improvement: Only allow one (1) WooCommerce BOGO coupon to be applied to the cart at once
* Improvement: WOOCS currency switcher plugin integration
* Improvement: Show notice if a WooCommerce BOGO coupon already exists on the cart and don’t apply the new one 

= 4.0.3 =
* Bug Fix: Store Credits: Searching for existing customer on the second page of the customer list will show empty list
* Bug Fix: Store Credits: refunding order to store credits more that the available amount won't show any notice
* Bug Fix: Make notices be visible on the store credits admin page
* Bug Fix: Store Credits: Failing on manually refund will remove the "Refund to Store Credits" button 
* Bug Fix: Order total is not deducted with the tore credits discount when the order is recalculated in the backend

= 4.0.2 =
* Bug Fix: Fee Value is Hidden in The Order Details Table on The Checkout Page if Store Credit Module is Enabled

= 4.0.1 =
* Bug Fix: Store Credit - SQL Improvement

= 4.0 =
* Feature: Store Credits: Announcing Store Credits! You can now have the ability to grant store credit to your customers against their account which they can redeem later during checkout when placing an order. This is great for customer service scenarios such as giving credit, issuing refunds back to Store Credit instead of refunding payment, and many other future upcoming features.
* Feature: Store Credits: Admin management dashboard
* Feature: Store Credits: Checkout implementation
* Feature: Store Credits: Issue Refunds using store credit
* Feature: Store Credits: Add a My account tab to show customers their store credit
* Feature: Store Credits: Add REST API endpoints for store credit

== Upgrade notice ==

There is a new version of Advanced Coupons for WooCommerce Free available.
