lukepolo / laracart

Laravel Shopping Cart Package
https://laracart.lukepolo.com
MIT License
576 stars 86 forks source link

Add fees specific cart items? #141

Open pbehrens opened 8 years ago

pbehrens commented 8 years ago

Not sure if this is the right place to put something like this but, it would be cool if you could add fees to specific cart items. Let say you had a local delivery service and some items had different delivery fees because they are going to different parts of a city.

Right now, we are subclassing CartItem to add a fee system based on extra options passed in, but it would be neat if it was included in the CartItem model.

lukepolo commented 8 years ago

Thats a great idea. Theres something you can do that may help you , is the sub items. Sub items can add additional "fees" , "modifiers" that allow you to increase your item.

Feel free to make a PR to add this feature it seems logical to have fees as well on the cart items themselves.

pbehrens commented 8 years ago

Ok, we are using sub items currently, if I get around to adding fees into the CartItem model I'll definitely make a PR. We are a flower delivery company, but I could see this being used in other user cases.

Thanks for the awesome package by the way!

lukepolo commented 8 years ago

Awesome, glad you got around it for now , im working on 2.0 but have been sidelined with another project, Im hoping to get to this soon!