marbles / craft-teamleader
craft commerce与teamleader之间的连接,实现发票流程的便捷处理
1.0.0
2020-03-11 15:17 UTC
Requires
- craftcms/cms: ^3.0.0-RC1
- janhenkes/teamleader-php-sdk: ^2.0
This package is auto-updated.
Last update: 2024-09-26 16:57:05 UTC
README
craft commerce与teamleader之间的连接,实现发票流程的便捷处理
需求
此插件需要Craft CMS 3.0.0或更高版本以及Craft Commerce 2或更高版本。
安装
要安装此插件,请按照以下说明操作。
-
打开您的终端并转到您的Craft项目
cd /path/to/project
-
然后告诉Composer加载插件
composer require marbles/craft-teamleader
-
在控制面板中,转到设置 → 插件,并为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提供