Automatic has released version 4.0 of its WooCommerce module. With the exception of the latest admin gui, which has been in production for over a year, the development of this upgrade started in January 2020. The upgrade also provides an improved on-board interface for mobile customers.

Version 4.0 is the latest version of the addon. Users will render a copy of the servers before updating. The WooCommerce team recommends checking on a staging platform before switching to a live server to insure that it operates smoothly.

The latest edition is not completely backward compatible with the prior versions of WooCommerce. Reading the guide How to upgrade WooCommerce before pressing the update button is suggested.

Developers and end-users will take care of improvements to the Action Scheduler Repository, which is a background task runner in WooCommerce. In the past, data was stored as a custom post sort, but has now been moved to a custom database table.

The move will allow background operations more effective with a huge volume of data. This still has the ability to disable custom code that does not explicitly communicate with the API, although that would not be a concern for most users.

What’s new in 4.0?

4.0 is the first big update of 2020 and we are looking forward to having a new edition of WooCommerce Admin with this series. WooCommerce Admin is the first step toward a more streamlined WooCommerce core JavaScript-driven interface.

WooCommerce Admin

Features:

  1. New dashboard
  2. New and improved reports
  3. Improved notification experience
  4. New store management tools

WooCommerce admin has far greater monitoring features than prior versions of reports and allows analysis, contrasts and overviews of how the shop performs in terms of transactions, earnings, which are the most popular / highest-grossing items, introduces tools for increased consumer retention and analytics.

We have made it very simple to export data from files as a csv to allow for seamless integration with other systems.

Together with the admin of WooCommerce, we are introducing to all customers a modern Company Panel with better order processing functionality and continuity between web and smartphone interface.

According to the JavaScript specifications, this interface must be rendered accessible to all shops operating WordPress 5.3+. The shop that uses older versions of WordPress would also have WooCommerce Admin removed.

Action Scheduler 3.1

One of the fundamental technology that has allowed WooCommerce Admin is Action Scheduler— a background task runner already used in the WooCommerce heart. The 3.1 edition that we’re using in WooCommerce 4.0 is a fresh, more efficient edition of Action Scheduler that uses custom tables to offer better functionality including in stores with huge amounts of orders and posts in the database.

New Onboarding Experience

Starting a shop can be a challenging and frustrating process, so we trust that we can help our new customers get their shop up and running quicker and more quickly. As a consequence, 50% of our potential clients will be willing to seek out a fresh on-board experience.

Upgrading to 4.0

WooCommerce 4.0 is a new big update, which indicates that it is not completely backward compatible with previous versions of WooCommerce. However, the update we are making is just at the stage of the Action Scheduler framework and thus the improvement is intended to function well for most customers. We recommend testing and backing up prior to upgrading and following our upgrade guide.

There are a few post-update database maintenance procedures that need to be performed after upgrading. For very wide tables, we suggest performing the installation process using the WP CLI command wp wc update instead of utilizing the admin gui.

When you are a developer and have skipped the trial and release candidate (RC), the following details could be useful:

Deprecated Functions and Methods

  • countries_using_vat got replaced by WC_Countries::get_vat_countries

Template File Changes in 4.0

The following template files have been updated in this release

FileChanges
cart/shipping-calculator.phpWording of Country updated to Country / Region in shipping calculator
global/quantity-input.phpAdded placeholder attribute for the quantity input
emails/customer-reset-password.phpAdded missing tag for the end of paragraph
emails/email-styles.phpUpdated img CSS
emails/email-header.phpSet table width to 100%
single-product/add-to-cart/grouped.phpAdded placeholder attribute for the quantity input

For more details check here:
https://woocommerce.wordpress.com/2020/03/10/woocommerce-4-0-is-here/
https://wptavern.com/woocommerce-4-0-lands-with-new-admin-interface-and-updated-onboarding-experience