sagefrog/sage-woocommerce-fix

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/sagefrog/sage-woocommerce-fix

v1.0.2 2023-11-16 20:12 UTC

This package is not auto-updated.

Last update: 2025-10-18 04:00:23 UTC


README

Add WooCommerce support to Sage 10.

Installation

Install the composer package.

composer require sagefrog/sage-woocommerce-fix

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;
});