定制 iqnection-modules/mailchimp 二次开发

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

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

iqnection-modules/mailchimp

Composer 安装命令:

composer require iqnection-modules/mailchimp

包简介

SilverStripe Mailchimp Integration

README 文档

README

Provides functionality to add contacts to Mailchimp Directly integrates with IQnection's Base Pages module

Setup:

Log in to MailChimp as the client: https://login.mailchimp.com

Create a Mailchimp API key. At the time this was written, this was located under Account > Extras > API Keys.

If using the IQnection BasePages module, a field will automatically be added to the form controls tab in the CMS to select which list submissions should be added to.

To add contacts using your own controller:

Create an extension for your page, and add the following function to the Controller Extension:

class FormSubmission extends DataObject { public function onBeforeWrite() { parent::onBeforeWrite(); if (!$this->ID) { $mc = new Mailchimp(SiteConfig::current_site_config()->MailchimpApiKey); $result = $mc->addContact($this->Email, 'my_mailchimp_list_id', $this->FirstName, $this->LastName); } return $this; } }

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-01-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固