setono/sylius-addwish-plugin

Sylius plugin that integrates Addwish

Installs: 13 405

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 6

Type:sylius-plugin


README

Latest Version on Packagist Software License Build Status Quality Score

Plugin integrates Addwish tracking to Sylius via setono/sylius-tag-bag-plugin

Installation

Step 1: Download the plugin

Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:

# Omit setono/sylius-tag-bag-plugin if you want to
# override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage
$ composer require setono/sylius-addwish-plugin setono/sylius-tag-bag-plugin

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the plugin

Then, enable the plugin by adding it to the list of registered plugins/bundles in the config/bundles.php file of your project:

<?php
# config/bundles.php
return [
    Setono\TagBagBundle\SetonoTagBagBundle::class => ['all' => true],

    // Use this bundle or override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage
    Setono\SyliusTagBagPlugin\SetonoSyliusTagBagPlugin::class => ['all' => true],

    Setono\SyliusAddwishPlugin\SetonoSyliusAddwishPlugin::class => ['all' => true],
];

Step 3: Create configuration

# config/packages/setono_sylius_addwish.yaml
setono_sylius_addwish:
    partner_id: "%env(ADDWISH_PARTNER_ID)%"
# .env

# Get it at https://addwish.com/company/signin.html
ADDWISH_PARTNER_ID=YOUR_PARTNER_ID

Development

Run composer try to try this plugin.

Run composer all before pushing changes to repo / making PR.

Addwish docs