2.0.0 (2025-04-28)
⚠ BREAKING CHANGES
- Deprecate
theme/woocommerce/views_folderfilter in favor oftimber/woocommerce/views_folder - Deprecate timber/integration/woocommerce/product filter in favor of timber/woocommerce/product (#50)
- Remove
woocommerce_shop_loophook call inProduct::setup()to reduce side effects (#48)
archive-product.twig
🚫 Before
{% if fn('wc_get_loop_prop', 'total') %}
{% for post in posts %}
{##
# Depending on your WooCommerce display settings, the
# `woocommerce_product_subcategories` function might reset the $wp_query global. By
# calling `have_posts()`, we check if there are posts we can display.
#}
{% if fn('have_posts') %}
{{ fn('wc_get_template_part', 'content', 'product' ) }}
{% endif %}
{% endfor %}
{% endif %}✅ After
{% if fn('wc_get_loop_prop', 'total') %}
{% for post in posts %}
{##
# Depending on your WooCommerce display settings, the
# `woocommerce_product_subcategories` function might reset the $wp_query global. By
# calling `have_posts()`, we check if there are posts we can display.
#}
{% if fn('have_posts') %}
{##
# Hook: woocommerce_shop_loop.
#}
{% do action('woocommerce_shop_loop') %}
{{ fn('wc_get_template_part', 'content', 'product' ) }}
{% endif %}
{% endfor %}
{% endif %}Features
- Deprecate
theme/woocommerce/views_folderfilter in favor oftimber/woocommerce/views_folder(ac58e4f) - Deprecate timber/integration/woocommerce/product filter in favor of timber/woocommerce/product (#50) (359eddb)
- Remove
woocommerce_shop_loophook call inProduct::setup()to reduce side effects (#48) (484e621)
Bug Fixes
- Fix bugs when templates are accessed in the WooCommerce status screen (7988120)