Develop WooCommerce

The official WooCommerce development blog

May 23rd: Dev chat #4 — May 17, 2017

May 23rd: Dev chat #4

It’s time for our 4th dev chat, if you missed something in the last one, you can recap our summary here.

The next chat will be on May 23rd at 16: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.

Here is the agenda:

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

See you there!

WooCommerce 3.0.7 fix release notes — May 16, 2017

WooCommerce 3.0.7 fix release notes

The WooCommerce 3.0.7 fix release is now available. You can download it from WordPress.org or as an automatic update in your administration panel.

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

* Fix - Display of grouped product permalinks + names.
* Fix - Ensure wc_get_payment_gateway_by_order has a valid order ID to avoid errors.
* Fix - Ensure get_plugin_updates exists in API.
* Fix - Correctly set rating term after updating product visibility.
* Fix - is_ip_address should be static.
* Fix - Handle clearing for 3, 4, and 5 columns in the product gallery.
* Fix - Some added protection against notices/errors in the assets and variation data-store files.
* Fix - If backorders are enabled, do not make variable products out of stock.
* Fix - Undefined function in class-wc-embed.php.
* Fix - Fix 'base location' not being returned via the settings API.
* Fix - When re-filling fields on checkout, only change the empty ones to avoid conflicts with gateway plugins and hidden fields.
* Fix - Make calculate tax function clear taxes if taxes are disabled on recalculation.
* Fix - Update all customer session address fields when updating via checkout.
* Fix - Support customer searches < 3 characters long, but with result limiting.

If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.

Dev Chat Summary: May 9th — May 10, 2017

Dev Chat Summary: May 9th

This post summarizes the dev chat meeting from May 9th. (agenda, Slack archive).

How we deal with “random” products and caching

Currently results from product shortcodes are saved in cache for 30 days, and this is raising issues with “Random” products since some users feel it is too much time.

All results were randomly chosen, even if you refresh five times and see the same products, not to mention that “Random” does not mean “New every page refresh”.

We decided to do a few extra queries, creating a range of random products saved in cache, so every page refresh we can randomly choose a range of products already cached and shuffle them. This will create an impression that have new products for every page refresh without the burden of querying new products each time.

Progress with CRUD search

We decided to split it into every CRUD object, so will be done products by 3.1, and then Coupons and Orders for 3.2.

Claudiu is currently work in a better way to do query search, like doing queries by date using:

>=2017-05-05
>2017-05-05
<2017-05-05
<=2017-05-05 2017-05-05...2017-05-08 >=1493942400
>1493942400
<1493942400
<=1493942400
1493942400...1494201600

Check #14971 for more details.

Progress with importer

Work in progress, but we have a parser ready and by the end of this week we’ll have it working. More news coming soon.

WooCommerce 3.0.6 fix release notes — May 9, 2017

WooCommerce 3.0.6 fix release notes

The WooCommerce 3.0.6 fix release is now available. You can download it from WordPress.org or as an automatic update in your administration panel.

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

* Fix - Fixed conflict between global attributes and custom attributes with the same names.
* Fix - Added missing "id" to API for shipping zone methods to support the CLI.
* Fix - Incorrect use of wc_format_price_range in get_price_html_from_to.
* Fix - Clone each meta object when cloning WC_Data object to avoid modifying original meta stdClass objects.
* Fix - Fix non numeric warning for some order data.
* Fix - Fixed a warning when no customer country is defined for state input.
* Fix - Use term name when reordering so correct data is passed to the new order.
* Fix - Formatting issues in wc_display_item_meta.
* Fix - Check if IP address is valid in IP address detection code.
* Fix - wc_attribute_taxonomy_id_by_name should use wc_sanitize_taxonomy_name to prevent breaking special chars.
* Fix - Correct variable name in order structured data.
* Fix - Prepend new item keys with $items_key to make them unique.
* Fix - Hide offers from structured markup when blank.
* Fix - Fixed "Proceed to checkout" button color in Twenty seventeen dark theme.
* Fix - Only set reply-to if the email + name is set.
* Fix - Correctly exclude terms in wc_get_related_products.
* Fix - Reset post data prevents grouped products working in shortcodes.
* Fix - Fix min price range comparisons.
* Fix - Properly save order items in legacy REST API.
* Fix - Use correct full size for variation images.
* Fix - Add noscript style for gallery.
* Fix - Fix/duplicate potential stock reduction with paypal.
* Tweak - Improve _wc_term_recount performance.
* Tweak - Improve plugin update detection in system status report to reduce timeouts.
* Tweak - Improve "Save Order" button to reproduce WordPress post/page behavior.
* Tweak - Added zipcode validation for France.
* Dev - Added woocommerce_shop_order_search_results filter.

If you spot any further issues, please report them to us in detail on GitHub so the development team can review – comments on this post are closed.

May 9th: Dev chat #3 — May 8, 2017

May 9th: Dev chat #3

It’s time for our third dev chat, if you missed something in the last one, you can recap our summary here.

Our third dev chat will be on May 9th at 16: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.

Here is the agenda:

  • How we deal with “random” products and caching.
  • Progress with CRUD search.
  • Progress with importer.
  • Anything else? Contribution ideas, projects, & thoughts.

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

See you there!