Skip to content

Unable to apply several percentage coupons #314

Description

@t-prod

Hi,

I can apply several Percentage coupons on the cart (not on the item).
Only one is supported despite the fact I have config('laracart.multiple_coupons') to true.
How can I achieve to have multiple coupons like this ?

$couponType = '\LukePOLO\LaraCart\Coupons\\'.$discount->getDiscountType();
$coupon = new $couponType($discount->code, $discount->discount_percent / 100, [
    'description' => $discount->code.' '.$discount->discount_percent.' %'
]);
LaraCart::addCoupon($coupon);

Thanks for your help

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions