Tested Updated Bestseller Documented

Amount Left for Free Shipping for WooCommerce

(10 customer reviews)

From: $39.99 / year

Show your customers the amount left for free shipping in WooCommerce.

$39.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$99.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
$199.99Unlimited sitesLifetime updates and support30-day money-back guaranteeBuy
Clear

Description

Amount Left for Free Shipping for WooCommerce plugin lets you display the amount left for free shipping in WooCommerce.

You can display the amount on cart page, mini cart widget, “Amount Left for Free Shipping” widget, checkout page, “add to cart” notice and/or store notice.

Additionally (to display it anywhere on your site) you can use:

  • [alg_wc_left_to_free_shipping] shortcode:
    [alg_wc_left_to_free_shipping content="%amount_left_for_free_shipping% left for free shipping"]
  • alg_wc_get_left_to_free_shipping() PHP function:
    alg_wc_get_left_to_free_shipping( "%amount_left_for_free_shipping% left for free shipping" );

Plugin Options

Plugin settings are located in “WooCommerce > Settings > Amount Left for Free Shipping”.

Content Options

In all plugin messages you can use HTML and/or shortcodes. Available placeholders:

  • %amount_left_for_free_shipping%
  • %free_shipping_min_amount%
  • %current_cart_total%
  • %amount_left_for_free_shipping_raw%
  • %free_shipping_min_amount_raw%
  • %current_cart_total_raw%
If amount left for free shipping is not updated, when you update the cart content – you need to either enable plugin’s “AJAX” option or change the Position. For example – if you select the default “After cart totals” position for the “Info on Cart” – amount will be updated (if, for example, you change product quantities in the cart). On the other hand – if you select “After cart” position – amount will not be updated and your customer will have to refresh the cart page manually to see the updated left to free shipping amount. In other words – position must be inside that part of the cart page that is being refreshed after cart content changes. Same applies to the checkout page, where amount may differ depending on shipping country selected by customer (in case if you have multiple free shipping methods in multiple shipping zones with different minimal order amounts). In case if you’ve enabled the “AJAX” option, content will be updated on any Position.
Some Postions (e.g. “Order review: after Shipping”) are outputted inside a HTML table, so you need to wrap it in HTML table row tags, e.g.:

<tr><th></th><td>%amount_left_for_free_shipping% left for free shipping</td></tr>

General Options

Amount Left for Free Shipping for WooCommerce - General Options

Include discounts
Include discounts when calculating cart total.
Default: yes
Message on free shipping reached: Content
Outputted when min free shipping amount is reached. You can use HTML and/or shortcodes here. To disable – set it empty. For more information please check the Content Options section.
Default:
You have free delivery!
Message on empty cart
If disabled, then standard content is outputted.
Default: no
Message on empty cart: Content
E.g.: Free shipping on orders over %free_shipping_min_amount%!. For more information please check the Content Options section. Ignored unless “Message on empty cart > Custom message” checkbox is enabled.
Default: None

AJAX Options

Enable this section if you want the amount to be updated via AJAX, e.g. when using plugin’s “Store notice” section, or WooCommerce “Enable AJAX add to cart buttons on archives” option, or for some positions in cart, when customer updates items quantities and the amount text is positioned outside of automatically refreshed area.

Amount Left for Free Shipping for WooCommerce - AJAX Options

Enable AJAX
Default: no
Additional events
Additional JavaScript events to update the amount text on. Leave empty if unsure.
These events are always included: updated_cart_totals added_to_cart removed_from_cart wc_fragment_refresh updated_checkout wc_cart_emptied
Default: None
Added to cart event without AJAX
Fires a custom event alg_wc_alfs_added_to_cart in case a product has been added to cart without AJAX. Enable it if the “Store notice” is not getting displayed on single product pages.
Default: no

Advanced Options

Amount Left for Free Shipping for WooCommerce - Advanced Options

Check for free shipping
Check for already available alternative (i.e. not requiring minimum order amount) free shipping methods. No text will be outputted in this case.
Default: no
Check for virtual cart
Check if cart consists of virtual products only. No text will be outputted in this case.
Default: no

Cart Options

Outputted on the cart page.

Amount Left for Free Shipping for WooCommerce - Cart Options

Enable/Disable
Enable/disables the “Cart” section.
Default: no
Content
For more information please check the Content Options section.
Default:
%amount_left_for_free_shipping% left for free shipping
Position
Possible values: Before cart; Before cart table; Before cart contents; Cart contents; Cart coupon; Cart actions; After cart contents; After cart table; Cart collaterals; After cart; Before cart totals; Cart totals: Before shipping; Cart totals: After shipping; Cart totals: Before order total; Cart totals: After order total; Proceed to checkout; After cart totals; Before shipping calculator; After shipping calculator; If cart is empty.
Default: After cart totals
Position order (priority)
Here you can move the info inside the Position selected above.
Default: 10

Mini Cart Options

Outputted in the mini cart widget.

Amount Left for Free Shipping for WooCommerce - Mini-cart Options

Enable/Disable
Enable/disables the “Mini-cart” section.
Default: no
Content
For more information please check the Content Options section.
Default:
%amount_left_for_free_shipping% left for free shipping
Position
Possible values: Before mini cart; Before mini cart contents; After mini cart contents; In mini cart total; Before mini cart buttons; In mini cart buttons; After mini cart buttons; After mini cart.
Default: After mini cart
Position order (priority)
Here you can move the info inside the Position selected above.
Default: 10

Checkout Options

Outputted on the checkout page.

Amount Left for Free Shipping for WooCommerce - Checkout Options

Enable/Disable
Enable/disables the “Checkout” section.
Default: no
Content
For more information please check the Content Options section.
Default:
%amount_left_for_free_shipping% left for free shipping
Position
Possible values: Before checkout form; Before customer details; Billing; Shipping; After customer details; Before order review; Order review; Order review: Before shipping; Order review: After shipping; Order review: Payment: Before submit button; Order review: Payment: After submit button; After order review; After checkout form.
Default: After order review
Position order (priority)
Here you can move the info inside the Position selected above.
Default: 10

Store Notice Options

Site-wide notice. You may also want to enable “General > AJAX” option for this.

Amount Left for Free Shipping for WooCommerce - Store Notice Options

Enable/Disable
Enable/disables the “Store Notice” section.
Default: no
Content
For more information please check the Content Options section.
Default:
%amount_left_for_free_shipping% left for free shipping
Hide
In milliseconds. Set to zero to show the notice permanently.
Default: 0
Position
Possible values: Bottom; Top.
Default: Bottom
Background color
Default: #3d9cd2
Text color
Default: #fff
Text alignment
Possible values: Left; Right; Center; Justify.
Default: Left

Add to cart Notice Options

Notice displayed when “Add to cart” button is clicked.

Amount Left for Free Shipping for WooCommerce - Add to cart Notice Options

Enable/Disable
Enable/disables the “Add to cart Notice” section.
Default: no
Content
For more information please check the Content Options section.
Default:
%amount_left_for_free_shipping% left for free shipping
Position
Possible values: Before the standard text; After the standard text.
Default: After the standard text
Glue
“Glue” is inserted between the standard “add to cart” text and “left for free shipping” text.
Default:
<br>

Advanced: Manual Min Amount Options

Generally the plugin will retrieve the minimum free shipping order amount automatically, however, if you are using non-standard shipping methods for free shipping (i.e. not the original “Free shipping” method from WooCommerce), you need to set the amount manually here.

Amount Left for Free Shipping for WooCommerce - Manual Min Amount Options

Manual min amount
Enable/disables the “Manual min amount” section.
Default: yes

Manual Min Amount

Ignored if set to zero.

Manual min amount
Default: 0

Extra Options

Here you can optionally select user roles, currencies and/or shipping zones to set individual manual min amounts for. Select values and “Save changes” for new option fields.

User roles
Default: None
Currencies
Default: None
Shipping zones
Default: None

Styling Examples

There is a number of ways you could restyle the messages. For example, you can add <span> tag with style attribute, e.g.:

<span style="color:red;font-size:small;">%amount_left_for_free_shipping% left for free shipping</span>

Or if you want to create an alert box:

<div style="background-color:#ff9800;color:white;padding:15px;">%amount_left_for_free_shipping% left for free shipping</div>

Progress Bar

To display the amount as a graphical progress bar instead of a text, you can use HTML <progress> tag and plugin’s _raw amounts. For example, try adding this to the “Content” option:

<progress max="%free_shipping_min_amount_raw%" value="%current_cart_total_raw%"></progress>

Or if you need an inverted value:

<progress max="%free_shipping_min_amount_raw%" value="%amount_left_for_free_shipping_raw%"></progress>

If you’d like to restyle the progress bar, check this page.

10 reviews for Amount Left for Free Shipping for WooCommerce

  1. Petia Koleva (verified owner)

    Great support and perfectly working plugin. I highly recommend.

  2. Mika

    Great plugin and support.

    We had an issue, so I wrote the developer. He fixed the code and made it work.

    Not many developers do that on the fly!

  3. Michael Petersen (verified owner)

    Quick and competent support!

  4. Leanne (verified owner)

    Awesome plugin and support! Tom is a gem.

  5. Bruce (verified owner)

    This is a great plugin. It works flawlessly and the Pro version has many useful options. Tom offers the best in customer service and helps you with any questions you may have.
    I normally don’t rate plugins although this is simple and impressive. A+++

  6. Dominic

    Amazing Plugin! Tom even helped me to implement a second and third bar for free gifts. Never seen such an amazing support!

  7. FABIEN Bas

    Demo ?

  8. Rene Ulrich (verified owner)

    Awesome plugin!! Simple, lightweight and WPML compatible! Keep up the good work! 🙂

  9. Martin

    Theri is one problem – if I change samething in cart, the price is not price not updated. So works – but not inaccurately.

    • Tom Anbinder

      Hi Martin,

      If amount left for free shipping is not updated, when you update the cart content – you need to change the Position. For example – if you select the default “After cart totals” position for the “Info on Cart” – amount will be updated (if, for example, you change product quantities in the cart). On the other hand – if you select “After cart” position – amount will not be updated and your customer will have to refresh the cart page manually to see the updated left to free shipping amount. In other words – position must be inside that part of the cart page that is being refreshed after cart content changes. Same applies to the checkout page, where amount may differ depending on shipping country selected by customer (in case if you have multiple free shipping methods in multiple shipping zones with different minimal order amounts).

      Hope that helps.

      UPDATE: Since plugin v1.5.0, you can use our new “AJAX” option. This way the message will be updated on any position.

  10. Lucas

    Very simple small plugin. Does exactly what’s promised.

Add a review

Your email address will not be published. Required fields are marked *

Changelog

2.0.5 - 15/06/2021

  • Fix - Free and pro plugins can't be active at the same time.
  • Dev - General - Create "Hide by user roles" option.
  • Dev - Add composer.
  • Dev - Add promoting notice package.
  • WC tested up to: 5.4.

2.0.4 - 13/05/2021

  • Dev - General - Ajax Options - Add "Force update" option trying to fix issues with caching.
  • Dev - Store notice - Site-wide notice - Add "Placement hook" option.
  • Dev - Store notice - Site-wide notice - Add "Animate" option.
  • WC tested up to: 5.3.

2.0.3 - 10/05/2021

  • Fix - Widget - Fix possible PHP warning "Undefined array key content".
  • WC tested up to: 5.2.

2.0.2 - 29/03/2021

  • Dev - General - Add "Ignore virtual products in cart" option.
  • Dev - Add alg_wc_left_to_free_shipping_cart_total filter.

2.0.1 - 22/03/2021

  • Dev - Create wpml-config.xml file with some admin text options from the plugin for a better compatibility with Polylang and WPML.
  • Tested up to: 5.7.

2.0.0 - 15/02/2021

  • Fix - General - Ajax prevents content wrapping.
  • Dev - Cart and Checkout - Add "Wrap method" option.
  • Dev - Cart and Checkout - Add "Wrap template" option.
  • Dev - General - Add "Clear notices" option.
  • Dev - General - Create "Cart total method" option.
  • Dev - Manual min amount - Compatibility - Add compatibility option with "WooCommerce Currency Switcher" plugin made by WooCommerce author realmag777.
  • Dev - Add alg_wc_left_to_free_shipping_manual_min_amount filter.
  • Dev - Add alg_wc_left_to_free_shipping_manual_min_amount_extra filter.
  • WC tested up to: 5.0

1.9.6 - 13/01/2021

  • Dev - Store notice - Create "Default WooCommerce notice" option.
  • Dev - Store notice - Default WooCommerce notice - Create "Notice type" option.
  • Dev - Store notice - Default WooCommerce notice - Create "Display by function" option.
  • Dev - Advanced - Add "Check cart free shipping" option.
  • Dev - General - Add "Hide by category" option
  • Dev - General - Hide by category - Add "check children" option
  • Dev - Add alg_wc_get_left_to_free_shipping_validation filter.
  • Tested up to: 5.6
  • WC tested up to: 4.9

1.9.5 - 08/12/2020

  • Fix - Replace get_left_to_free_shipping call using an array as parameter.

1.9.4 - 07/12/2020

  • Dev - General - Add "Minimum cart amount" option allowing to only display the amount left for free shipping if there is a minimum cart amount.
  • Dev - General - Add min_cart_amount param to alg_wc_left_to_free_shipping shortcode.
  • WC tested up to: 4.7

1.9.3 - 16/11/2020

  • Fix - Widget - Allow the Widget to save some html including <progress> tag.
  • Add FAQ regarding HTML table row tags for table positions.
  • Improve position descriptions at Cart and Checkout sections using (in table) at the end.
  • Improve content description at Cart and Checkout sections regarding HTML table row tags for table positions.

1.9.2 - 05/11/2020

  • Fix - PHP Notice: Undefined index: min_free_shipping_amount in class-alg-wc-alfs-pro.php.
  • Dev - Manual Min Amount - Settings section title updated.
  • Dev - General - Ajax Options - Add "Added to cart event without AJAX" option fixing the Store notice not getting displayed on single product pages.

1.9.1 - 04/11/2020

  • Dev - AJAX - Events - Renamed to "Additional events" and it now defaults to an empty string. I.e. default events are now always included.
  • Dev - [alg_wc_left_to_free_shipping] - Third param in shortcode_atts() function now matches the shortcode name (was alg_get_left_to_free_shipping).
  • Plugin author updated.
  • WC tested up to: 4.6.

1.9.0 - 10/10/2020

  • Dev - Manual Min Amount - "Currencies" options added.
  • Dev - Manual Min Amount - "Shipping zones" options added.
  • Dev - Manual Min Amount - "Enable section" option added (defaults to yes).
  • Dev - "Manual Min Amount" settings section added (i.e. options moved from "General > Advanced: Manual Min Amount").

1.8.0 - 28/09/2020

  • Dev - Code refactoring.
  • WC tested up to: 4.5.

1.7.1 - 28/08/2020

  • Fix - Functions - alg_wc_alfs_get_min_free_shipping_amount() - Checking if shipping method is_available() - "Free delivery" fixed and outputted.
  • Fix - AJAX - Pass min amount - Option removed (i.e. defaults to no) (this caused issues with free shipping coupons).
  • Fix - Store notice - <p> tag replaced with <span> (this allows to use <p> tags inside the content).

1.7.0 - 25/08/2020

  • Fix - Store notice + empty "free delivery" issue fixed.
  • Dev - Functions - alg_wc_alfs_get_min_free_shipping_amount() - Checking if shipping method is_available() now (if it is - will hide the left to free shipping content).
  • Dev - AJAX - Events - wc_cart_emptied event added to the default value.
  • Dev - General - "Message on empty cart" options added.
  • Dev - General - Message on free shipping reached - Now replacing placeholders.
  • Dev - Advanced - Check for virtual cart - Returning false on empty cart now.
  • Dev - Store notice - "Position" option added. Available values: "Bottom" (default) and "Top".
  • Dev - Store notice - z-index increased to 99999 (was 9999).
  • Dev - JS files minified.
  • Dev - Admin settings restyled.
  • Dev - Code refactoring.
  • Tested up to: 5.5.
  • WC tested up to: 4.4.

1.6.0 - 06/08/2020

  • Fix - Functions - alg_get_left_to_free_shipping() - AJAX + "free delivery" issue fixed.
  • Dev - "Store notice" section added.
  • Dev - AJAX - Events - updated_checkout event added to the default value.
  • Dev - AJAX - "Pass min amount" option added.
  • Dev - Mini Cart - Position - 5 new positions added.
  • Dev - Advanced - "Check for free shipping" option added.
  • Dev - Advanced - "Check for virtual cart" option added.
  • Dev - Functions - alg_get_left_to_free_shipping() - Always processing shortcodes in result now (not only on "free delivery reached").
  • Dev - Admin settings split into sections: "Cart", "Min-cart", "Checkout", "Add to cart" sections added.
  • Dev - Code refactoring.

1.5.2 - 26/06/2020

  • Dev - AJAX - Time interval based method replaced with event based; "Interval" option removed; "Events" option added (defaults to updated_cart_totals added_to_cart removed_from_cart wc_fragment_refresh).

1.5.1 - 25/06/2020

  • Fix - AJAX - "You have free delivery!" text fixed.

1.5.0 - 25/06/2020

  • Dev - "AJAX Options" section added.

1.4.8 - 23/06/2020

  • Dev - Now checking child classes of WC_Shipping_Free_Shipping class as well.
  • Dev - Admin settings descriptions updated.
  • Tested up to: 5.4.
  • WC tested up to: 4.2.

1.4.7 - 30/03/2020

  • Fix - "Reset settings" admin notice fixed.
  • Dev - Optional $free_delivery_text param added to the alg_wc_get_left_to_free_shipping() function.
  • Dev - Optional free_delivery_text attribute added to the [alg_wc_left_to_free_shipping] shortcode.
  • Dev - Admin settings descriptions updated.
  • WC tested up to: 4.0.

1.4.6 - 06/02/2020

  • Dev - Optional $min_free_shipping_amount param added to the alg_wc_get_left_to_free_shipping() function.
  • Dev - Optional min_free_shipping_amount attribute added to the [alg_wc_left_to_free_shipping] shortcode.

1.4.5 - 26/01/2020

  • Dev - Advanced Options - "User roles" options added.

1.4.4 - 24/01/2020

  • Dev - General Options - "Include discounts" option added.
  • Dev - Code refactoring.
  • WC tested up to: 3.9.

1.4.3 - 25/12/2019

  • Dev - "Add to Cart Notice" options added.

1.4.2 - 20/12/2019

  • Dev - Advanced Options - "Manual min amount" option added.
  • Dev - Comparing floats with epsilon now.

1.4.1 - 04/12/2019

  • Dev - Code refactoring.

1.4.0 - 13/11/2019

  • Fix - Cart total calculation fixed.
  • Dev - Code refactoring.
  • WC tested up to: 3.8.
  • Tested up to: 5.3.

1.3.1 - 19/06/2019

  • Dev - New placeholders added for "raw" amounts: %amount_left_for_free_shipping_raw%, %free_shipping_min_amount_raw% and %current_cart_total_raw%.
  • Tested up to: 5.2.

1.3.0 - 30/04/2019

  • Dev - Checkout - "Order review: Before shipping" and "Order review: After shipping" positions added.
  • Dev - %current_cart_total% placeholder added.
  • Dev - [alg_wc_left_to_free_shipping_translate] shortcode added.
  • Dev - Code refactoring.
  • Dev - Admin settings restyled and descriptions updated.
  • Dev - "Tested up to" and "WC tested up to" updated.

1.2.0 - 07/08/2018

  • Dev - WooCommerce v3.2.0 compatibility - "WC_Cart->taxes is deprecated since version 3.2" notice fixed.
  • Dev - Info on Checkout - New positions added.
  • Dev - POT file renamed.
  • Dev - Admin settings restyled.
  • Dev - Plugin settings array is saved as main class property.
  • Dev - Code refactored and cleaned up.
  • Dev - Plugin link updated.

1.1.0 - 14/06/2017

  • Dev - Autoloading plugin's options.
  • Dev - custom_textarea instead of textarea in plugin settings.
  • Dev - Settings descriptions updated.
  • Dev - Plugin link updated from http://coder.fm to https://wpcodefactory.com.
  • Dev - Plugin header ("Text Domain" etc.) updated.

1.0.0 - 16/02/2017

  • Initial Release.

Free version

This plugin is a premium version of free "Amount Left for Free Shipping for WooCommerce" plugin.

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to "Admin Dashboard > Plugins > Add New > Upload Plugin" and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.