setono/sylius-coupon-url-application-plugin

Setono example plugin for Sylius.

Fund package maintenance!
Setono

Installs: 4 549

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:sylius-plugin

v2.0.0-alpha 2024-02-15 09:31 UTC

This package is auto-updated.

Last update: 2024-02-15 09:35:30 UTC


README

Latest Version Software License Build Status Code Coverage Mutation testing

Apply coupons by going to example.com/coupon or directly from the URL by going to example.com/?coupon=CODE.

Installation

composer require setono/sylius-coupon-url-application-plugin

Import routing

# config/routes/setono_sylius_coupon_url_application.yaml
setono_sylius_coupon_url_application:
    resource: "@SetonoSyliusCouponUrlApplicationPlugin/Resources/config/routes.yaml"

or if your app doesn't use locales:

# config/routes/setono_sylius_coupon_url_application.yaml
setono_sylius_coupon_url_application:
    resource: "@SetonoSyliusCouponUrlApplicationPlugin/Resources/config/routes_no_locale.yaml"

Install assets

php bin/console assets:install