laravelshoppingcart icon indicating copy to clipboard operation
laravelshoppingcart copied to clipboard

How do I apply a condition only if the total amount is less than a specific amount?

Open on3ss opened this issue 5 years ago • 1 comments

I'm building an ecommerce where my client have a policy of free shipping after the total order crosses a certain price, how do I achieve this?

on3ss avatar May 22 '20 13:05 on3ss

you can define the order value(s) which apply for free shipping in a config file (or in the DB) and check with the subTotal whether this value is reached or not. Best owuld be to write an own method for calculating the shipping costs.

frezno avatar May 23 '20 06:05 frezno