hexbit/sage-woocommerce 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hexbit/sage-woocommerce

最新稳定版本:1.0.5

Composer 安装命令:

composer require hexbit/sage-woocommerce

包简介

Woocommerce support for sage 10

README 文档

README

This library was developed when the problems of the mentioned library were not fixed and contributions were not allowed, but now, due to the possibility of contributions, use it.

Sage Woocommerce

CI

This package enables WooCommerce integration for Sage 10 themes and Blade templates.

Changelog

  • Issue #1 fixed, please change your view renderer to sage.woocommerce.view.

Installation

composer require hexbit/sage-woocommerce

Usage

Add Hexbit\Woocommerce\Providers\WooCommerceServiceProvider to your providers array in yourtheme/config/app.php

...
    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    |
    | The service providers listed here will be automatically loaded on the
    | request to your application. Feel free to add your own services to
    | this array to grant expanded functionality to your applications.
    |
    */

    'providers' => [
        /**
         * Package Service Providers
         */
         Hexbit\Woocommerce\Providers\WooCommerceServiceProvider::class
    ]
...

Or you can discover service provider by using wp cli.

wp acorn package:discover

Then create app/woocommerce.php in your app folder and override default blade files in resources/views/woocommerce, or you can create automatically by running this command

wp acorn vendor:publish --tag="woocommerce"

& finally change view renderer in your index file like this:

<?php echo \Roots\view(\Roots\app('sage.woocommerce.view'), \Roots\app('sage.data'))->render(); ?>

Done! now you will be able to override woocommerce templates with blade TE in yourtheme/resources/views/woocommerce/ directory.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

统计信息

  • 总下载量: 6.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 26
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-26