Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 2.83 KB

CHANGELOG.md

File metadata and controls

46 lines (30 loc) · 2.83 KB

Timber Integration for WooCommerce

0.7.1 - 2023-01-13

  • Fixed a bug when product global is not present on singular product pages.

0.7.0 - 2023-01-13

  • Updated PHP requirements to allow PHP 8.0 and higher.

0.6.1 - 2023-01-13

  • Fixed a couple of issues with $product global not being kept in sync.
  • Added small improvements in documentation.

0.6.0 - 2021-04-13

  • Improved when this integration applies Product classes and Product Iterators to single posts and lists of posts. This should make it easier to have collections of WooCommerce products and other WordPress post types on the same page. Internally, this integration now uses a Class Map for the product post type. This means that you can also extend this integration’s Timber\Integrations\WooCommerce\Product class with your own Product class.
  • Improved default archive-product.twig template and added default templates for loop/loop-start.twig and loop/loop-end.twig.
  • Added a default checkout/form-checkout.twig template.
  • Added a $context parameter to the render_default_template() function. When you pass a context to this function, it will be merged with Timber’s default context.
  • Added a post variable to the context in Twig template partials.
  • Fixed a bug when calling Timber\Post::__construct() messed up the $product global.
  • Fixed a compatibility issue with admin-ajax.

0.5.3.1 - 2020-07-29

  • Fixed merge bug.

0.5.3 - 2020-07-29

  • Added Twig function wc_action() that can be used instead of action() when calling hooks from Twig. In Twig, you would use it like this: {% do wc_action('woocommerce_single_product_summary') %}. This was added to fix compatibility problems when hooks were used with parameters. (See #14, thanks @pascalknecht)
  • Added support for Automatic Twig partial selection when using wc_get_template_part(). You could only use wc_get_template() before. Now, you can use both.
  • Fixed a bug when the $post global was not properly set when looping over products.
  • Updated default templates.
  • Updated internal repository folder structure.

0.5.2 - 2018-09-06

  • Fixed bug that prevented the integration from working with different versions of Twig. Thanks @chrislind and @VincentLoy!
  • Removed non-working support for installing the integration as a WordPress plugin. The integration can only be installed through Composer. Future versions of Timber will will drop support for installation as a plugin. That’s why drop it here, too.

0.5.1 - 2018-04-30

  • Improved default templates.
  • Improved documentation.