Blocks in WooCommerce 3.8

In version 3.6, WooCommerce introduced blocks allowing to dynamically display products on any page created with the block editor. Polylang for WooCommerce 1.2, released the same day made sure that every blocks could be used in a multilingual context. For example, an English page displaying the “Top rated products” block displayed only products in English, as anyone would expect.

For the version 3.8, the WooCommerce developers decided to refactor the blocks and unfortunately, this introduces an issue for multilingual shops. In fact, WooCommerce will always display the same products whatever the language. This concerns the following blocks:

  • Best Selling Products
  • Newest products
  • On sale products
  • Top rated products

The issue is already addressed in the development version of the WooCommerce blocks feature plugin and the fix should be released in the version 2.5, planned for November. However the current plan is to include this fix in WooCommerce only in the version 3.9.

What are the possibilities if you are using these blocks?

  1. You can keep using WooCommerce 3.7.1, install the WooCommerce blocks feature plugin and wait for the release of WooCommerce blocks 2.5 to update to WooCommerce 3.8. This solution is acceptable if there is no WooCommerce security release meanwhile.
  2. You can replace the WooCommerce block by an equivalent shortcode block. This is not as convenient to setup but should display the products in the correct language on frontend.

Additionally, we want to aknowledge that Polylang for WooCommerce is not yet compatible with the block “All reviews” introduced by WooCommere 3.8. “Reviews by product” and “Reviews by category” blocks are working fine.

If you don’t use the 5 blocks mentionned above, there should be no problem to update to WooCommerce 3.8. It’s however important to update to Polylang for WooCommerce 1.2.3 too.