2017 © Pedro Peláez
 

library active-campaign

n/a

image

fond-of-spryker/active-campaign

n/a

  • Thursday, July 5, 2018
  • by daniel-rose
  • Repository
  • 2 Watchers
  • 0 Stars
  • 423 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 76 % Grown

The README.md

spryker-active-campaign

Build Status PHP from Travis config license, (*1)

Attentition: This Package is only for use with SprykerSuite! If youre using the version based on the demoshop use version 1.x

Installation

composer require fond-of-spryker/active-campaign

Configuration

Register the new module in your YvesBootstrap.php, (*2)

Add your personal active campaign configuration to config file., (*3)

$config[ActiveCampaignConstants::ACTIVE_CAMPAIGN_API_KEY] = "ACTIVE_CAMPAIGN_API_KEY";
$config[ActiveCampaignConstants::ACTIVE_CAMPAIGN_URL] = "ACTIVE_CAMPAIGN_URL";
$config[ActiveCampaignConstants::ACTIVE_CAMPAIGN_SUBSCRIBE_URL] = 'newsletter/subscribe/';
$config[ActiveCampaignConstants::ACTIVE_CAMPAIGN_CONFIRMATION_URL] = 'newsletter/subscribe-confirmation/';
$config[ActiveCampaignConstants::ACTIVE_CAMPAIGN_LISTID . "de_DE"] = 100;
$config[ActiveCampaignConstants::ACTIVE_CAMPAIGN_FORMID . "de_DE"] = 200;

Feel free to change the routes for subscribe and confirmation in the plugin provider. Dont forget the locales for LISTID and FORMID! The default locale is set on "de_DE", if you want to change this extend or overwrite FondOfSpryker\Zed\ActiveCampaign\ActiveCampaignConfig., (*4)

Templates

Sample submit form (@ActiveCampaign/index/form.twig), (*5)

{{ form_start(activeCampaignSubscriptionForm, { 'action': path('ROUTE_ACTIVECAMPAIGN_SUBMIT')}) }}
    {{ form_row(activeCampaignSubscriptionForm.email }}
    {{ form_row(activeCampaignSubscriptionForm.submit }}
{{ form_end(activeCampaignSubscriptionForm) }}

After creating the submit form you need two more templates for after subscription an confirmation: - @ActiveCampaign/index/subscribe.twig - @ActiveCampaign/index/subscribe-confirmation.twig, (*6)

Both are just static templates, do whatever you want., (*7)

The Versions

05/07 2018

dev-master

9999999-dev

n/a

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pascal Fischer

05/07 2018

1.0.0-RC2

1.0.0.0-RC2

n/a

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pascal Fischer

04/06 2018

dev-development/fixes-for-spryker-suite

dev-development/fixes-for-spryker-suite

n/a

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pascal Fischer

15/05 2018

1.0.0-RC1

1.0.0.0-RC1

n/a

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pascal Fischer