Sage WooCommerce 为 Sage 10 添加 WooCommerce 支持。 安装 安装 composer 包。 composer require generoi/sage-woocommerce A…
Sage WooCommerce 为 Sage 10 添加 WooCommerce 支持。 安装 安装 composer 包。 composer require generoi/sage-woocommerce A…
Add WooCommerce support to Sage 10.
Install the composer package.
composer require generoi/sage-woocommerceAdd the package to the cached package manifest.
wp acorn package:discoverPublish 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');/**
* Add support for WooCommerce Subscription templates.
*/
add_filter('sage-woocommerce/templates', function ($paths) {
$paths[] = WP_PLUGIN_DIR . '/woocommerce-subscriptions/templates/';
return $paths;
});暂无开放 Issues,或尚未同步最近议题。