darryldecode / laravelshoppingcart

Shopping Cart Implementation for Laravel Framework
1.34k stars 439 forks source link

How to add condition to shipping fee only? #315

Open everisk opened 3 years ago

everisk commented 3 years ago

For example, we have a coupon discount delivery fee of xx amnt and instead of applying this discount to subtotal, we need to apply the discount only when shipping fee exists. Is there a method to add shipping fee and have condition apply to target "shipping" instead of just subtotal or total?

zaheerusmanot commented 1 year ago

Yes it exists at least now. I believe it didn't exist in old versions but should be there in 4.1+ at least if not before.