Crinsane / LaravelShoppingcart

A simple shopping cart implementation for Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discount from total price

saeed7m opened this issue · comments

how can i update cart::total() with discount price ,
for example total price of 4 products equal to 1000$
i want give user 20$ discount , how can I update total price with new price (980$ ) ?

thank you

I thik theres a setGlobalDiscount() method in Cart class.

Hi, did you manage to solve the problem?

setGlobalDiscount is set to be percentage not fixed, how can we change that?