Sylius Coupon URL Application Plugin
Apply coupons by going to example.com/coupon
or directly from the URL by going to
example.com/coupon?coupon=CODE&redirect=URL
.
Installation
composer require setono/sylius-coupon-url-application-plugin
Import configuration
# config/packages/setono_sylius_coupon_url_application.yaml
imports:
# ...
- { resource: "@SetonoSyliusCouponUrlApplicationPlugin/Resources/config/app/config.yaml" }
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