That WooCommerce becomes popularity is due to its ease of use, a number of features, developer friendliness, high extendability, and many other reasons. One of the most important reasons here is the regularly updating of this WordPress plugin.
WooCommerce 3.0 named “Bionic Butterfly” has just been released. This version contains some major features such as updated product gallery, speed and performance improvements, the addition of CRUD classes, CLI via REST API etc.
So, What is different from WooCommerce version 2.7?
Are you curious about the new features? Just keep reading.
Updated Product Gallery with New Zoom, Gallery View, and Mobile Features.
There has been talked about the gallery experience on individual WooCommerce product pages. Finally, the gallery has been revamped for the better view on mobile devices and smaller screen sizes.
Gallery images can now be magnified or zoomed in from a lightbox popup. When there are multiple thumbnails images, clicking on one will simply update the current image instead of opening a new lightbox window. Other notable gallery updates include mobile gallery views, touch, and swipe to scroll through the gallery, pinch to zoom and swipe up to close the current image.
When you zoom into a product image on mobile devices, it will display the actual size of the image instead of being scaling to the browser window.
A large focus of this release is website performance. WooCommerce 3.0 includes a lot of optimization measures to make it faster. For one, it introduces new taxonomies to the WordPress database that will be used in place of post meta. This makes WooCommerce more scalable and improves performance even for large sets of products. In their tests, the developers saw speed increases of up to 94%!
Aside from that, they have taken other measures to improve WooCommerce’s performance. Examples include changes to templates and the product loop as well as increased check out the performance by deferring emails. Secondly, we have “lazy” updates for products, where only saved properties (terms, meta, object) are written to the database.
Introduction to CRUD Classes
This is the change that makes WooCommerce 3.0 a MAJOR update.
It’s the introduction of CRUD:
With these classes, WooCommerce has standardized the way data can be stored and accessed by developers (or in your case extension plugins).
- WooCommerce defines structured data for each resource for easy lookup
- Data flow and validation is controlled by WooCommerce
- Developers are abstracted from knowing the internals of the data they are working with
- Data can be easily moved to say custom tables without affecting existing code. These changes are reusable making the code optimized
- This change will make for optimized data storage, and for uniformity in reading and writing data.What you need to know is, due to this update in the way data is handled,
CLI Powered REST API to Manage Data Faster
WooCommerce has completely overhauled its Command Line Interface (CLI). The new interface has been forked from Restful and is powered by the REST API.
In the new version, this feature is powered by the REST API (which also got a number of new endpoints). This reduces code load, gives more power to developers and prevents data duplication across the code base. Effectively code duplication has been removed with more power to developers.
Template Changes & More
Version 3.0.0 has some template changes too. The following templates have been updated:
If your theme overrides any of these templates, you might want to update them.
Other Updated Features
Truth be told, WooCommerce 3.0 has much more going for it than what we’ve highlighted so far, but it’s hard to fit it all into a single post. Here are some more changes you might want to know about:
- Automatic sorting of tax rates, which makes it easier to add and manage new tax zones.
- The sitewide notice is now dismissible by customers.
- WordPress networks/multisite user handling has been updated so that WooCommerce will add existing users to the current store if the user already has an account in the same network (this resulted in an error in 2.6).
- They merged cart percent and product percent coupon types into one and removed product_cart discounts. The discounts these coupons provide are identical, however, the cart based validation would stop the coupon being applied if any non-eligible item was in the cart, rather than just discounting eligible items like product coupons do. This was not intuitive, caused store owner and confusion, and most important of all, just meant users would have to check out twice to make use of these coupons (that’s not fair nor ideal).
- Grouped products are linked from the parent rather than the children. Children can be in more than one group.
- Variable product prices which contain sale items will no longer contain a strikethrough. Showing a stricken out range followed by a non-striked out the range, especially if the prices overlap, is too darn confusing and longwinded. Instead, we show just a range now. Sale prices will still be shown when selecting a variation.
- And finally, improved logging for developers
I hope you have enjoyed reading about the new WooCommerce 3.0. If you’ve already tried this version feel free to share your experience in the comments.