• The WooCommerce 2.6.14 fix release is now available. You can download it from WordPress.org or as an automatic update in your administration panel.

    ~23 commits made it into this release fixing several issues and hardening the code in the API. The full changelog for 2.6.14 is below.

    * Fix - Ensure product exists in wc_update_product_stock.
    * Fix - Send emails using the site language.
    * Fix - Remove tilde typo.
    * Fix - Fixed notice in get_rating_count.
    * Tweak - Define arg and return data types, added extra descriptions, and correctly cast IDs in the Rest API.
    * Tweak - Handle custom error data in WC_REST_Exception.
    * Tweak - Display conflicted product ID when using a duplicate SKU via the API.
    * Localisation - Add Finnish defaults to the installer.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.


  • The WooCommerce 2.6.13 fix release is now available. You can download it from WordPress.org or as an automatic update in your administration panel.

    ~8 commits made it into this release fixing a few issues.

    The full changelog for 2.6.13 is below.

    * Fix - Demo store banner styling in 2017.
    * Fix - Removed default instructions from COD, BACS and Cheque gateways so displayed messages can be unset.
    * Fix - Made variation options update on first load.
    * Localisation - Added Romanian locale to the installer.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.


  • The WooCommerce 2.6.12 fix release is now available. You can download it from WordPress.org or as an automatic update in your administration panel.

    ~12 commits made it into this release fixing a few issues.

    The full changelog for 2.6.12 is below.

    * Fix - Make images shown up on pageload when using ajax variations.
    * Fix - Allow variations options to be deselected in IE11.
    * Fix - Disabled-button and pagination styling in 2017.
    * Fix - PHP 7.1 compatibility issues with non-numeric math operations.
    * Fix - Fix notices in abstract class when price is empty.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.


  • The WooCommerce 2.6.10 fix release is now available. You can download it from WordPress.org or as an automatic update in your administration panel.

    ~30 commits made it into this release fixing several issues.

    The main change to be aware of surrounds the variation add to cart form script. A few versions back we spotted an incompatibility with the latest version of Firefox which would deselect an attribute on click. This was “fixed” in 2.6.9, however this inadvertently prevented the ‘default selected’ attributes from working correctly in other browsers.

    We narrowed this down to the way WooCommerce would filter out non-relevent attributes on select box focus. Some browsers did not like the DOM being changed during the focus event. To resolve this, the DOM needed to be kept up to date and left alone during focus.

    The PR which fixed this can be found here. You’ll notice it’s a fairly substantial refactor, and one we wouldn’t usually feel comfortable including in a fix release, but it was necessary to resolve the browser compatibility issues and makes the script more easily understandable. We’ve been testing this internally since merging.

    The full changelog for 2.6.10 is below.

    * Fix flat rate no class costs when no shipping classes exist.
    * Fix returned REST API coupon expiry date.
    * Fix reviews_allowed being set to false in Rest API.
    * Fix sales date series for some custom ranges.
    * Fix missing attributes when an option is chosen by default on variations. This was the result of a Firefox 50 compatibility fix. In order to support both Firefox, Chrome, IE, and Edge we've done some refactoring of the variation add to cart scripts.
    * Updated Geo IP API services.
    * Added support for WP VIP/VIP GO GEO IP headers.
    * Dev - API - Throw error messages when product image ID is not a valid WordPress attachment ID.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.

    Happy holidays from the team 🙂


  • WooCommerce 2.7 codename “Bionic Butterfly” has been tagged in GitHub and is ready for testing!

    This is a major release with large structural changes to help us work towards a more performant platform. There have been over 1900 commits from 16 contributors since July!

    You can download WC 2.7 Beta 1 here.

    ( @ \v/ m )
    \__+|+__/
    {_/ \_}

    (more…)


  • WooCommerce brings many improvements to the WP-CLI powered command-line interface we introduced back in WooCommerce 2.5.

    WP-CLI is a set of command-line tools for managing WordPress installations Our WC-CLI layer adds tools for managing products, coupons, payment gateways, shipping zones, and much more.

    In WooCommerce 2.5 and 2.6, the CLI was powered by it’s own separate code. This code was separate from the REST API or WC core, meaning code could end being duplicated across the code base, or it meant that certain things possible in the REST API were not possible at all with the CLI.

    2.7 introduces a new CLI powered by the REST API. We did this by forking Restful. This reduced the amount of code be need to maintain, provides a lot more power and commands, and means that the commands will always be current as we improve our REST API in the future.

    Currently, following commands are available with list, get, update, and create operations:

    wp wc customer 
    wp wc customer_download 
    wp wc order_note 
    wp wc payment_gateway 
    wp wc product 
    wp wc product_attribute 
    wp wc product_attribute_term 
    wp wc product_cat 
    wp wc product_review 
    wp wc product_shipping_class 
    wp wc product_tag 
    wp wc product_variation 
    wp wc shipping_method 
    wp wc shipping_zone 
    wp wc shipping_zone_location 
    wp wc shipping_zone_method 
    wp wc shop_coupon 
    wp wc shop_order 
    wp wc shop_order_refund 
    wp wc tax 
    wp wc tax_class 
    wp wc tool 
    wp wc webhook 
    wp wc webhook_delivery 
    

    There is a wiki page containing more information and examples. We’ll also work on generating documentation similar to our REST API documentation for each command. You can also use the —help flag to find out each commands parameters.

    Please test out the new CLI commands and provide feedback or bug reports on GitHub!


  • The WooCommerce 2.6.9 security/fix release is now available. You can download it on WordPress.org or as an automatic update in your administration panel.

    ~44 commits made it into this release fixing several minor issues and taking care of some security hardening.

    The main change was that we updated WooCommerce for compatibility with WordPress 4.7 and the new Twenty Seventeen theme!

    The full changelog for 2.6.9 is below.

    * Theme - Added support for Twenty Seventeen Theme.
    * Fix - Excluded webhook delivery logs from comments count.
    * Fix - Included password strength meter in "Lost Password" page.
    * Fix - Order fee currency in admin screen.
    * Fix - Variation selection on Firefox 40.
    * Fix - Don't prevent submission when table is not found on cart.
    * Fix - Improved layered nav counts on attribute archives.
    * Fix - Fixed pagination when removing layered nav items via widget.
    * Fix - Default BE tax rate.
    * Fix - Downloads should store variation ID rather than product if set. Also fixes link on account page.
    * Fix - Use wp_list_sort instead of _usort_terms_by_ID to be compatible with 4.7.
    * Fix - Only return empty string if empty for weight and dimension functions.
    * Security - Wrapped admin tax rate table values in _escape to thwart evil CSVs an admin user could upload. Vulnerability was discovered by Fortinet’s FortiGuard Labs.
    * Dev - API - Only update categories menu order and display if defined.
    * Dev - Fixed when should deliver wp_trash_post webhooks.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.


  • We’ve made a small update today (WooCommerce 2.6.8) to fix a few issues. You can download it on WordPress.org or as an automatic update in your administration panel.

    This release had ~14 commits.

    1. Fixed an issue where REQUEST_URI was missing a trailing slash during comparison in our page caching functions.
    2. Fixed an issue where empty prices were sent to PayPal.
    3. Fixed email validation on the account page.

    We also took the opportunity to update our extensions screen so it’s a bit more modern.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.


  • We’ve made a small update today (WooCommerce 2.6.7) to fix a few issues. You can download it on WordPress.org or as an automatic update in your administration panel.

    This release had ~11 commits.

    1. Fixed an issue where users without permissions to view reports, but could manage other parts of WooCommerce such as orders, could see the reports widget on the dashboard.
    2. Use FLOOR and CEIL to get price filter values. Fixes the issue where max price is capped at 99 in the price filter.
    3. Improved credit card fields for better mobile experience using TEL fields.
    4. Remove notices only once on cart so subsequent notices do not remove older notices.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.


  • We’ve made a small update and released WooCommerce 2.6.6 today to fix a potential conflict with extensions. You can download it on WordPress.org or as an automatic update in your administration panel.

    Only ~2 made it into this release to fix:

    1. A conflict with Local Pickup Plus due to 2.7.x code making it into the 2.6.x branch. This went unnoticed due to core not using the function with the error.
    2. The sort order of shipping methods was not being respected on the cart.

    If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.