Additional functionality for WooCommerce Coupons: Allow discounts to be automatically applied, applying coupons via url, etc...
“WooCommerce Extended Coupon Features” adds functionality to the WooCommerce coupons and allows for automatic discount rules.
Very easy to use, the functionality is conveniently integrated to the WooCommerce Edit Coupon panel.
Requires:
* WooCommerce 5.0 or newer (6.0+ recommended)
* PHP 7.0 or newer (7.2+ Recommended)
* WordPress 5.0 or newer
Full documentation is available at www.soft79.nl.
For more information or the PRO version please visit www.soft79.nl
Let the customer have a discount of $ 5.00 when the cart reaches $ 50.00.
Voila! The discount will be applied when the customer reaches $ 50.00 and a descriptive message will be shown.
If the restrictions are no longer met, it will silently be removed from the cart.
Apply coupon through an url like this:
Voila! Any coupon can be applied this way. Please note that an empty cart can not contain any coupons. Download the free Cart Links for WooCommerce-plugin to handle the ‘fill_cart’-part of the url.
This plugin has been tested in combination with WP-Multilang.
/wp-content/plugins/
directory, or automatically install it through the ‘New Plugin’ menu in WordPressYes, all string values are translatable through the supplied POT/PO/MO files. In WPML translatable items appear in the context woocommerce-jos-autocoupon
in “String Translations”.
The coupon will only be applied if the url links to a WooCommerce page (e.g. product loop / cart / product detail ) and at least one product is in the cart.
An empty cart can not have any coupons. The PRO version of this plugin has a work around for this though; it will ‘remember’ the coupon and apply it at the moment the cart contains a product.
On the settings page (Settings > WooCommerce Extended Coupon Features) check the box Update order review on payment method change.
On the settings page (Settings > WooCommerce Extended Coupon Features) check the box Update order review on billing email change.
Release Data – 2023-03-11
– Introduce filter wjecf_coupon_item_quantity to override matching item quantity
– HPOS compatibility
– FIX: Don’t let WooCommerce Subscriptions plugin remove autocoupons when calculating on a different cart
Release Date – 2022-09-28
– (PRO) FIX: Custom fields: also lookup field of parent in case of a variation
Release Date – 2022-09-18
– (PRO) FIX: On some systems auto update request was issued too often
– (PRO) FIX: zip package must contain the woocommerce-auto-added-coupons-pro/ subdirectory
Release Date – 2022-01-16
– FIX: Last update broke BOGO. (Thanks for informing us, Celian)
Release Date – 2021-11-19
* FIX: Remove autocoupon, better detection if it was removed manually
* FIX: (PRO) Free products: Better variation attributes support
Release Date – 2021-02-13
* FIX: User restrictions on backend orders
Release Date – 2021-01-16
* (PRO) FIX: Don’t display free product selection when there are no items to choose from
* FEATURE: ‘Table Rate Shipping’ by WooCommerce compatibility
Release Date – 2020-11-30
* FEATURE: Defer an applied coupon if it’s valid and ‘allow queueing’ is enabled
* FEATURE: ‘Table Rate Shipping for WooCommerce’ by Border Elements compatibility
* FEATURE: Support for WP-Multilang (requires patch https://github.com/VaLeXaR/wp-multilang/pull/172 in WP-Multilang)
* FIX: Typo making filter ‘wjecf_first_order_statuses_to_check’ useless
Release Date – 2020-11-06
* FEATURE: Flexible shipping instances compatibility
Release Date – 2020-10-18
* PERFORMANCE: (PRO) Auto update: applied caching to prevent many requests to the webserver
Release Date – 2020-08-27
* (PRO) First purchase only: Add ‘Pending payment’ to order statuses and apply filter wjecf_first_order_statuses_to_check to allow override of the statuses to check
Release Date – 2020-08-18
* (PRO) FEATURE: Filter ‘wjecf_free_products_to_apply_for_coupon’
* (PRO) FEATURE: Filter ‘wjecf_bogo_products_to_apply_for_coupon’
Release Date – 2020-05-11
* (PRO) FEATURE: Limit discount to n lowest priced items
* (PRO) FEATURE: Accept Envato license key
* FEATURE: Include/exclude shipping method, instance or zone (PRO)
* FIX: Coupon data as url: Urlencode the coupon code
* FIX: Minor fix in WJECF_Debug log_the_request()
Release Date – 2020-03-28
* (PRO) FEATURE: Restrict coupon by shipping zone
Release Date – 2019-11-25
* (PRO) FIX: Custom meta allow number or boolean (yes | no) values
Release Date – 2019-09-18
* (PRO) FEATURE: Filter wjecf_is_first_purchase
Release Date – 2019-08-13
* FIX: Auto coupon priority issue when cart content changes and another ‘individual use’-coupon takes precedence
* (PRO) FIX: Free products: Only set cart item quantity when it has changed (fixes issue with woo-paypalplus which clears session at quantity change)
Release Date – 2019-05-21
* TWEAK: Remove domainname from redirect url after using ?apply_coupon=
* (PRO) FIX: Free products: Don’t apply a product that is not purchasable
* (PRO) TWEAK: Call WC core add_to_cart instead of custom add_to_cart-function
* (PRO) TWEAK: Free product selection: Show variation attributes in product title
Release Date – 2019-02-14
* FIX: wjecf_dump missing meta values
* TWEAK: Changed coupon discount html overwrite of Free-product-coupons (PRO) and Auto-coupons
* (PRO) FEATURE: Custom coupon error message
* (PRO) FIX: Bug in ‘Limit discount to’ in combination with WC prior to 3.3.0
Release Date – 2018-11-27
* (PRO) FIX: Product custom field filter for internal meta (e.g. _sale_price)
Release Date – 2018-11-10
* FIX: Limit discount to: in combination with WC < 3.2
* FIX: Added quantity to ‘woocommerce_add_cart_item_data’-filter (Fixes crash WooCommerce Product Addons)
* FIX: ‘Auto coupons’-settings not visible in FREE version
Release Date – 2018-10-12
* FIX: Auto coupons: silently remove invalid coupons
* FIX: WPML compatibility issue with “CATEGORIES AND”
* (PRO) FIX: CSS of the column system (box-sizing: border-box)
Release Date – 2018-09-03
* FIX: Email restrictions compatibility with WooCommerce versions prior to 3.4
* FIX: Individual use conflict
* FIX: (FREE) Missing debug template
Release Date – 2018-09-02
* FIX: Fatal error in FREE version of the plugin
* FIX: Require PHP5.4
Release Date – 2018-09-02
* IMPORTANT: Requires WooCommerce 3.0+ WordPress 4.8+ and PHP 5.3+
* FEATURE: Filter ‘wjecf_apply_with_other_coupons’ to disallow certain coupon combinations
* FEATURE: Update order review on payment/billing email change on checkout page (see settings page)
* FIX: Auto-coupon check usase limits per user and respect email restriction wildcards
* FIX: Auto-coupon in combination with individual_use respects exception filters
* FIX: Coupon queueing: Case sensitive coupon code compare issue
* FIX/PERFORMANCE: Rewritten handling of auto-coupons. Performance improvement
* (PRO) ENHANCEMENT: Free products: Better handling and performance of cart ajax events
* (PRO) FIX: Duplicate notices when enqueuing a coupon
* INTERNAL: Removed code for backwards compatibility with WC versions prior to 3.0
* INTERNAL: Rewritten boot-process. Class auto-loading. Code cleanup.
Release Date – 2018-08-16
* FIX: Download JSON compatiblilty issue with WC 2.6.x
* FIX: WPML Translate coupon title
Release Date – 2018-06-04
* FIX: WJECF_Controller: Don’t use wp_get_current_user() for admin-orders
* FIX: WJECF_Controller: Don’t use WC()->cart->subtotal for admin-orders
* FIX: Possible division by zero when calculating multiplier value
* FEATURE: Filter ‘wjecf_coupon_multiplier_value’ to allow overriding the coupon’s multiplier value
Release Date – 2018-04-02
* FEATURE: Auto-coupon compatibility with the ‘WooCommerce Free Gift Coupons’-plugin
* FIX: CATEGORIES AND in combination with variable products
* FIX: Call to undefined function wc_add_notice()
* FIX: (PRO) First order purchase: Ignore cancelled/waiting for payment order statuses
* FIX: (PRO) Auto updater plugins_api return $def instead of false
Release Date – 2017-12-24
* FIX: (PRO) Possible crash on null reference in filter woocommerce_coupon_get_discount_amount
Release Date – 2017-12-22
* German translation (Thanks to, Guido Hloch)
* FIX: Use WC_Coupon::get_description (for translation plugins)
* FIX: (PRO) ADMIN – Auto update: Allow multiple license activation
* FIX: (PRO) ADMIN – Auto update: Removed invalid warning ‘Invalid response block’
Release Date – 2017-12-04
* FIX: Typo ‘impode’ (Thanks to Constantine for reporting)
Release Date – 2017-12-02
* ADMIN: Fix: Changelog of plugin update screen
Release Date – 2017-12-02
* ADMIN: Compatibility with coupons added on the Order page from wp-admin (requires WC3.3+)
* ADMIN: Show ‘settings’ link on the plugin screen
* INTERNAL: Moved debugging functions to WJECF_Debug. Use template/log.php for output rendering of the log
* (PRO) FEATURE: Limit coupon to first time purchase only
* (PRO) ENHANCEMENT: Free products: Better grid layout of the free product selector
* (PRO) ENHANCEMENT: Free products: Auto submit of selection (works for inputs in container with class ‘wjecf-auto-submit’)
* (PRO) FIX: Free products: Respect “sold individually” when adding free products to the cart
* (PRO) FIX: Free products: WC2.6 compatibility (product->get_status())
Release Date – 2017-11-07
* (PRO) FIX: ‘Limit discount to’ not applied correctly in combination with WC3.2.3
Release Date – 2017-11-01
* (PRO) FIX: Free products: Removed unnecessary in cart / checkout table if no free product selection applies
* (PRO) FIX: Free products: Preserve notices when updating cart after applying/removing a coupon
* (PRO) FIX: Free products: Compatibility with Subscriptions plugin (prevent trigger of calculate_totals when adding free product to the cart)
* (PRO) FIX: Free products: Compatibility with WPML plugin (translation of the free products)
Release Date – 2017-09-23
* TWEAK: Get coupon description using WC_Coupon::get_description() to respect applicable filters (for example used by Polylang)
* (PRO) FEATURE: Allow customer to remove ‘Auto Coupons’ from the cart (see settings page)
* (PRO) FEATURE: Filter ‘wjecf_get_limit_to_options’ to allow adding custom ‘Limit to’-options
* (PRO) PERFORMANCE: Free products: Only load js and css when required
* (PRO) FIX: Free products: “update cart”-button not automatically enabled after selecting a free product (in combination with certain themes (e.g. Flatsome)
* (PRO) FIX: Free products: Prevent certain plugins from parsing attribute fields containing [products] as shortcode
* (PRO) FIX: Limit discount to cheapest item failed in WC3.0 in combination with a percent discount
* (PRO) FIX: Custom fields: Accept WC3.0 core fields (e.g. _price)
* (PRO) FIX: PHP Warnings in WJECF_Pro_Admin_Auto_Update
Release Date – 2017-06-12
* (PRO) FIX: Free products: Free product selection always visible on checkout-page
* (PRO) FIX: Free products: JS error when using IE / Safari
* (PRO) FIX: Free products: Cart contents was not updated when applying a coupon
* (PRO) FIX: Free products: wjecf_free_product_amount_for_coupon not called for $max_quantity variable in the template
Release Date – 2017-06-01
* (PRO) FIX: Documentation url
* (PRO) FIX: Forgot to raise version number, causing a permanent ‘An update is available’
Release Date – 2017-06-01
* (PRO) FIX: Duplicate products at free product selection