Develop WooCommerce

The official WooCommerce development blog

WC 3.3 Download Logging Feature — December 7, 2017

WC 3.3 Download Logging Feature

WooCommerce 3.3 will include a new download logging/reporting feature to track who downloads what from your store (when selling digital products). The issue relating to this was initially logged here.

This feature was contributed by @procifer during his trial (Automattic is hiring!). The pull requests for this can be found here and here. They add the following:

  • A new WC_Customer_Download_Log class supporting data stores to store logs to a custom table in the database.
  • Revised how download ids are generated to no longer rely on md5 hashes of filenames. This means each download has a unique ID which can be tracked.
  • A new report which lists downloads made by customers, along with information such as IP address.
  • Permission checks utilise the download log/tracking functions to make them more robust.

Visually, when viewing a download permission inside an order you’ll see a new link to the reports:

Edit order ‹ Local WordPress Dev — WordPress 2017-11-22 12-36-56.png

When this is clicked you’ll go off to the reporting section to see logs filtered to this permission ID:

Reports ‹ Local WordPress Dev — WordPress 2017-11-22 12-38-54.png

You’ll notice we track the following per download:

  • Timestamp of download event
  • Product/file that was downloaded, from what ID
  • Logged in user name
  • IP Address

The Reports > Orders > Customer downloads section allows you to filter logs by any of these properties.

Reports ‹ Local WordPress Dev — WordPress 2017-11-22 12-41-58.png

Thats it 🙂 Just a small enhancement we hope you’ll find useful.

WC 3.3 Product backorders and stock management improvements — December 6, 2017

WC 3.3 Product backorders and stock management improvements

Managing the product stock status cycle in a store is something that many store owners spend a lot of time doing. Products are always coming in, getting purchased, running out of stock, and needing to be reordered. WooCommerce 3.3 has improvements aimed at making stock management less time-consuming and more natural and intuitive for store owners.

Products with stock management

If a product has stock management enabled, the product’s stock status will now be automatically managed. It will naturally go from in stock to out of stock or on backorder as the product’s inventory runs out. When more inventory comes in, it will automatically go back in stock. You can just focus on how many of a product you have and WooCommerce will make sure the correct products are shown to customers in the store.

Products without stock management

If a product does not have stock management enabled, you will still manually control the stock status for the product but are now able to select “On Backorder” as a status.

Products screen

To go with these new changes we’ve made some changes to the Products screen. It is now easy to find and identify backordered products. We’ve also made it possible to filter products by stock status so you can quickly see which products need to be restocked and which products have plenty of stock left.

Testing and feedback

These changes are merged into our master branch on GitHub if you want to try things out. If all goes well, they will be part of 3.3 release in January.

Thoughts and feedback welcome in the comments.

December 12th: Dev chat #16 — December 5, 2017

December 12th: Dev chat #16

The next chat will be on December 12th at 17:00 UTC in the #core channel of the WooCommerce Community Slack. If you don’t already have access to the group, you can request an invite at the bottom of the WooCommerce developers page.

December 12th is also the day the WooCommerce 3.3 beta gets tagged! There are a lot of great new features in the upcoming release, and for this dev chat we’re going over these features and answering any questions you may have about them.

The features we are going to cover are:

Further information about upcoming WooCommerce features is available in the WooCommerce Platform Roadmap.

See you there!

WooCommerce 3.2.5 fix release notes — November 22, 2017

WooCommerce 3.2.5 fix release notes

WooCommerce 3.2.5 is now available. This fixes a few compatibility issues with WordPress 4.9, and a conflict with themes using product shortcodes.

~25 commits made it into this release. The full changelog is below.

* Fix - WordPress 4.9 - REST API - Updated schema, sanitization, and validation callbacks to support correct data types.
* Fix - WordPress 4.9 - Fix an issue saving variation attributes on new products and with attributes containing slashes.
* Fix - Save fee tax lines to new orders on checkout.
* Fix - Restore the post global after rendering product shortcodes.
* Fix - Fix product filtering when searching for a string including quote characters.
* Fix - Fix layered nav drop-downs containing unicode characters.
* Fix - Fix an edge case rounding bug with shipping taxes, and another with non-integer quantities.
* Fix - Set correct defaults when adding a new shipping class in admin.

Download the latest release of WooCommerce here or venture over to Dashboard → Updates to update your plugins from WordPress.

As usual, if you spot any other issues in WooCommerce core please log them in detail on Github, and to disclose a security issue to our team, please submit a report via HackerOne here. Comments on this post are closed.

November 28th: Dev chat #15 — November 21, 2017

November 28th: Dev chat #15

The next chat will be on November 28th at 17:00 UTC in the #core channel of the WooCommerce Community Slack. If you don’t already have access to the group, you can request an invite at the bottom of the WooCommerce developers page.

Our host this time will be Patrick Garman. Patrick is a partner at Mindsize, an eCommerce agency and verified WooExpert. He is also a very active member of the WooCommerce community, and his team has been developing a custom order tables plugin that will greatly improve the performance of orders in WooCommerce.

Here is his agenda:

  • Contributing to WooCommerce follow-up (once more!)
  • WooCommerce order and product data tables.
  • Holiday is (mostly, probably) over. Take a break.
  • Holiday sales showcase! Successes? Failures? What went right? What went wrong? Any data about it?

If you have anything to propose for the agenda, questions for Patrick, or related to the above, please leave a comment below.

See you there!