PHP code example of generoi / sage-woocommerce
1. Go to this page and download the library: Download generoi/sage-woocommerce library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
generoi / sage-woocommerce example snippets
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;
});