Skip to content

Breaking Changes!!!!!

Compare
Choose a tag to compare
@lukepolo lukepolo released this 27 Jan 16:42
· 88 commits to master since this release

All coupons must now have a forItem

which allows us to add coupons on the fly

    $this->laracart->add(
            1,
            'Product with 19% Tax',
            1,
            100,
            [
                \LukePOLO\LaraCart\CartItem::ITEM_TAX => .19,
            ]
        )->addCoupon(new \LukePOLO\LaraCart\Coupons\Fixed('50EUR', 50, [
            'description' => '50EUR',
        ]));