lucathiel/timber-integration-woocommerce
最新稳定版本:0.6.1-rc.1
Composer 安装命令:
composer require lucathiel/timber-integration-woocommerce
包简介
WooCommerce integration for Timber.
README 文档
README
This integration tries to make it easier to develop Timber themes for WooCommerce.
Here’s a short list of features it adds and problems it tries to solve:
- Automatic handling of the
$productglobal. Whenever you loop through a list of WooCommerce products, the integration will set the$productglobal for you. This will improve compatibility for WooCommerce and its integrations. - Enhance Timber’s context.
- Automatic Twig partial selection.
- Provide default templates, tips and examples.
Why would I need this?
This integrations makes sense if you need to develop a highly customized WooCommerce theme in a Timber context. If you try to stick to WooCommerce’s default as much as possible, you might not need this.
Documentation
Roadmap
Here are a couple features that are not yet integrated, but would be good contribution opportunities:
- Add support for tag templates.
- Add support for WooCommerce galleries. Maybe only documentation is needed?
Todo
- Add testing.
- Write a simple function to wrap a WooCommerce template.
- Add filter to filter current menu item classes for shop page.
- Hint about adding WooCommerce support to the theme (https://woocommerce.wordpress.com/2017/12/09/wc-3-3-will-look-great-on-all-the-themes/).
- Check compatibility with https://woocommerce.wordpress.com/2017/12/11/wc-3-3-image-size-improvements/
- Documentation: Add hint about using
woocommerce_before_template_partandwoocommerce_after_template_partto wrap a template.
统计信息
- 总下载量: 2.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-12