generoi / sage-woocommerce
v1.1.7
2026-11-02 12:54 UTC
Requires
- roots/acorn: *
Requires (Dev)
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ~3.0
- wp-phpunit/wp-phpunit: ^7.0
- yoast/phpunit-polyfills: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-feat/woocommerce-sidebar
- dev-fix/e2e-order-email-match
- dev-chore/refresh-published-templates
- dev-fix/template-part-without-core-file
- dev-test/e2e-deploy
- dev-fix/stale-cached-template-loader
- dev-fix/mu-loaded-acorn
- dev-patch-2
- dev-revert-7-patch-2
This package is auto-updated.
Last update: 2026-11-02 22:28:39 UTC
README
Add WooCommerce support to Sage 10.
Installation
Install the composer package.
composer require generoi/sage-woocommerce
Add the package to the cached package manifest.
wp acorn package:discover
Publish the required single-product.blade.php and archive-product.blade.php views.
wp acorn vendor:publish --tag="woocommerce-template-views"
Optionally publish a commented out app/wc-template-hooks.php file for customizing the WC template hooks.
wp acorn vendor:publish --tag="woocommerce-template-hooks"
By default your theme has now declared WooCommerce support. To add support for specific features, add them to your app/setup.php
add_theme_support('wc-product-gallery-zoom'); add_theme_support('wc-product-gallery-lightbox'); add_theme_support('wc-product-gallery-slider');
Filters
/** * Add support for WooCommerce Subscription templates. */ add_filter('sage-woocommerce/templates', function ($paths) { $paths[] = WP_PLUGIN_DIR . '/woocommerce-subscriptions/templates/'; return $paths; });