Let’s take a look at some of the highlights of this new version of WooCommerce.
New CRUD Classes
The WC team has put a plan in motion to handle scalability for growing eCommerce sites. The first step of this plan is abstracting data storage. Right now developers have multiple ways of storing and retrieving data, this fragmentation makes life difficult for developers who need very specific information in order to retrieve stored data. This is about to change with the introduction of CRUD classes and hopefully make things much simpler. Read more here.
The new version introduces a new CLI for WooCommerce powered by the REST API. This provides more commands and more power to the user while reducing the code that needs maintenance. If you want to learn more, check out this article.
New product galleries
A new single product image gallery has been implemented to add user requested features. Now visitors can both magnify and zoom images, touch gestures have been greatly improved and the mo bile lightbox now displays the image’s true size. More about the gallery can be found here, also implementation instructions for developers can be found here.
Taxonomies are now used more in product filtering. Specifically product visibility will be converted to a taxonomy (previously post meta) and will be used when displaying featured products or hiding out of stock items. This will improve performance on larger product catalog filtering. More here.
WP_Queries have been removed from the related and up-sell templates and replaced by a PHP foreach loop since IDs where already available, this removes a large query from product and cart pages.
The store-wide notice is now user dismiss-able, making it less of a problem when it overlaps with other elements, especially on mobile devices.
Tax rates are now sorted automatically.
Structured data are now output in a JSON-LD format which makes templates cleaner and ensures data remain intact even if the templates are modified.
It is expected that with a major release such as this one, there will be some template changes. Here is a list of the templates that have been updated to version 3.0.0
cart/cart.php cart/cross-sells.php checkout/thankyou.php emails/email-order-items.php emails/plain/email-order-items.php myaccount/downloads.php order/order-details-customer.php order/order-details-item.php order/order-details.php single-product/add-to-cart/grouped.php single-product/add-to-cart/simple.php single-product/add-to-cart/variation-add-to-cart-button.php single-product/meta.php single-product/photoswipe.php single-product/price.php single-product/product-attributes.php single-product/product-image.php single-product/product-thumbnails.php single-product/related.php single-product/review-meta.php single-product/review-rating.php single-product/stock.php single-product/tabs/additional-information.php
If your theme overrides any of the above templates you should check out the changes and updated the templates to avoid shop breaking situations.
There was quite a lot of deprecation done in WooCommerce 3.0.0, mainly due to the introduction of the new CRUD system. If you are using deprecated functions you will most likely get a notice informing you of the situation. This does not mean that your store is broken, but you will have to take action at some point and update your store, before the deprecated functions are removed from WooCommerce, at which point your store will stop working. More about deprecation here.
WooCommerce has released a minor update versioned 3.0.1 which fixes some bugs, you can learn more about the bugs fixed here.
WooCommerce 3.0.x and CSSIgniter
We currently have close to 20 WooCommerce compatible themes in our portfolio. We have updated the templates on each one to make sure they work with WooCommerce 3.0.1 and that users will not get annoying out of date notifications in the dashboard. All updates are currently live, if you haven’t already updated you will get a notice to do so in your dashboard. You can find info on how to update your theme here. Please note that due to the major changes made to some of the templates you should avoid updating the theme until you have updated WooCommerce itself.
As usual if you encounter any issues with your theme and WooCommerce 3.0.x you can seek help at our support forum here.