Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Apr 19:21
67a88cd

2.0.0 (2025-04-28)

⚠ BREAKING CHANGES

  • Deprecate theme/woocommerce/views_folder filter in favor of timber/woocommerce/views_folder
  • Deprecate timber/integration/woocommerce/product filter in favor of timber/woocommerce/product (#50)
  • Remove woocommerce_shop_loop hook call in Product::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_folder filter in favor of timber/woocommerce/views_folder (ac58e4f)
  • Deprecate timber/integration/woocommerce/product filter in favor of timber/woocommerce/product (#50) (359eddb)
  • Remove woocommerce_shop_loop hook call in Product::setup() to reduce side effects (#48) (484e621)

Bug Fixes

  • Fix bugs when templates are accessed in the WooCommerce status screen (7988120)