定制 generoi/sage-woocommerce 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

generoi/sage-woocommerce

最新稳定版本:v1.1.3

Composer 安装命令:

composer require generoi/sage-woocommerce

包简介

README 文档

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

统计信息

  • 总下载量: 232.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 172
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 172
  • Watchers: 8
  • Forks: 31
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-24