Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generoi/sage-woocommerce
https://github.com/generoi/sage-woocommerce
acorn sage woocommerce wordpress
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/generoi/sage-woocommerce
- Owner: generoi
- Created: 2020-04-02T23:12:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T15:11:11.000Z (8 months ago)
- Last Synced: 2024-11-06T06:50:02.091Z (8 days ago)
- Topics: acorn, sage, woocommerce, wordpress
- Language: PHP
- Size: 23.4 KB
- Stars: 144
- Watchers: 10
- Forks: 31
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sage WooCommerce
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`
```php
add_theme_support('wc-product-gallery-zoom');
add_theme_support('wc-product-gallery-lightbox');
add_theme_support('wc-product-gallery-slider');
```## Filters
```php
/**
* Add support for WooCommerce Subscription templates.
*/
add_filter('sage-woocommerce/templates', function ($paths) {
$paths[] = WP_PLUGIN_DIR . '/woocommerce-subscriptions/templates/';
return $paths;
});
```