marbles/craft-teamleader

craft commerce与teamleader之间的连接,实现发票流程的便捷处理

安装: 3

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

开放问题: 4

类型:craft-plugin

1.0.0 2020-03-11 15:17 UTC

README

craft commerce与teamleader之间的连接,实现发票流程的便捷处理

需求

此插件需要Craft CMS 3.0.0或更高版本以及Craft Commerce 2或更高版本。

安装

要安装此插件,请按照以下说明操作。

  1. 打开您的终端并转到您的Craft项目

     cd /path/to/project
    
  2. 然后告诉Composer加载插件

     composer require marbles/craft-teamleader
    
  3. 在控制面板中,转到设置 → 插件,并为Teamleader点击“安装”按钮。

Teamleader概述

-在此处插入文本-

配置Teamleader

在开始使用teamleader插件之前,您需要在teamleader中添加自定义集成,并将重定向URI设置为:[http://example.com/admin/teamleader/connect/integration](http://example.com/admin/teamleader/connect/integration),其中[http://example.com](http://example.com)是您的网站。

现在您可以复制您的clientId和clientSecret并将其添加到您的配置文件中。

配置文件看起来像这样

/**
 * Teamleader config.php
 *
 * This file exists only as a template for the Teamleader settings.
 * It does nothing on its own.
 *
 * Don't edit this file, instead copy it to 'craft/config' as 'teamleader.php'
 * and make your changes there to override default settings.
 *
 * Once copied to 'craft/config', this file will be multi-environment aware as
 * well, so you can have different settings groups for each environment, just as
 * you do for 'general.php'
 */

return [

    // Teamleader integration clientId
    "clientId" => '',

    // Teamleader integration clientSecret
    "clientSecret" => '',

    // Base Url of the app, this is needed to make your redirect uri
    "baseUrl" => '',

    // Id of the department where the invoices need to be saved
    "departmentId" => '',

    // Id of the tax rate you need for your invoices
    "taxRateId" => '',
];

设置完成后,您可以去Craft控制面板中的teamleader > 连接标签页,将您的teamleader连接到您的商业网站。

Teamleader路线图

一些待办事项和潜在功能的想法

  • 发布

Marbles提供