Version 1.1 contains the new
discount_coupons table. Make sure you have published the migration by running the following command:
php artisan vendor:publish --provider="Happypixels\Shopr\ShoprServiceProvider" --tag="migrations"
...or by copying the migration file into your project.
Make sure you add the following into your
config/shopr.php configuration file:
'discount_coupons' => [ /** * The validation rules for adding a discount coupon to the cart. * You may remove or add rules as you'd like, this is simply a common suggestion. */ 'validation_rules' => [ Happypixels\Shopr\Rules\Cart\CartNotEmpty::class, Happypixels\Shopr\Rules\Discounts\OnlyOneCouponPerOrder::class, Happypixels\Shopr\Rules\Discounts\CouponHasNotBeenApplied::class, Happypixels\Shopr\Rules\Discounts\CouponExists::class, Happypixels\Shopr\Rules\Discounts\DateIsWithinCouponTimespan::class, Happypixels\Shopr\Rules\Discounts\CartValueAboveCouponLimit::class ] ],