Commit Graph

44 Commits

Author SHA1 Message Date
Rob Gloudemans
53a1231188 Finally updated documentation for version 2 2016-07-14 09:53:23 +02:00
Rob Gloudemans
0c3c859b6c Add options to array form of CartItem 2016-06-30 15:43:08 +02:00
Matus Rohal
04f6e6bf40 Added: taxTotal format method 2016-06-23 12:35:20 +02:00
Matus Rohal
fb19422a9e Updated: Tax issues + Added methods for CartItem 2016-06-23 12:24:33 +02:00
Rob Gloudemans
dcfebb1a40 Well... 2016-06-15 10:20:37 +02:00
Rob Gloudemans
6c82e21626 Make CartItem implement Arrayable contract 2016-06-15 10:15:03 +02:00
Rob Gloudemans
c795fa8021 Merge pull request #154 from SumonMSelim/develop
#153 (Cannot add zero price) fixed
2016-06-15 10:01:34 +02:00
Rob Gloudemans
13fe150b77 Return empty collection when the cart is empty 2016-06-15 09:59:03 +02:00
Muhammad Sumon Molla Selim
41a3c0311d #153 (Cannot add zero price) fixed 2016-06-05 22:20:00 +06:00
Rakhal Imming
9c35432fd2 [Fix] Session quantity fix
Row exists in session, sum up the session quantity and the new quantity given to the add method.
2016-05-19 14:06:07 +02:00
Rakhal Imming
72174b6974 [Fix] ServiceContainer: Bind class to app 2016-05-19 10:45:51 +02:00
Rakhal Imming
83fefc2180 [Fix] Facade: Added facade to package 2016-05-19 10:45:22 +02:00
Rob Gloudemans
0f20bef1af Large update for version 2.0 2016-05-12 10:19:38 +02:00
Rob Gloudemans
af184d3e47 Updated to Laravel 5 2014-10-06 11:04:17 +02:00
Rob Gloudemans
ea2eec4f68 Added events, updated tests, some docblock updates and fixed bug on empty search param 2014-08-22 10:55:56 +02:00
Rob Gloudemans
47a8b07549 Updated search method on collections so they match with the default collection search method signature 2014-06-02 11:40:24 +02:00
Jack McDade
d3f73e54da support free products 2014-03-19 09:55:51 -04:00
Rob Gloudemans
3f23a0ab7b Merge branch 'master' of git://github.com/Crinsane/LaravelShoppingcart 2014-03-02 13:43:22 +01:00
Rob Gloudemans
47da5b128d Added a new associate method, to associate a row in the cart with a model, so you can access the model from the CartRowCollection 2014-03-02 13:43:11 +01:00
Rob Gloudemans
42f2dddf8e Fixed bug 2014-03-01 19:56:04 +01:00
Rob Gloudemans
30d789f0c0 Remove item when qty is a negative number + test, also added test for multiple options 2014-03-01 19:52:00 +01:00
Rob Gloudemans
c8e37b805e Fixed tests 2014-02-12 20:02:36 +01:00
Rob Gloudemans
160a2e3bd4 Removed addBatch method, the add method should be used. Also added events to the cart 2013-12-30 22:02:59 +01:00
Rob Gloudemans
628244bdcf Added a few exceptions that will be thrown at the time of errors. Makes for easier debugging. Also updated README accordingly 2013-07-27 17:46:57 +02:00
Rob Gloudemans
042ab7a45a Updated incorrect use of ksort(), also fixed unittests 2013-07-27 09:55:23 +02:00
Rob Gloudemans
5aa48468e2 Split the add() method into 2 methods 2013-07-08 23:26:04 +02:00
Rob Gloudemans
30403752ae Updated add() method, it now also accepts an array or a batch array. Mapped addBatch() method to add() method 2013-07-08 22:47:40 +02:00
Edwin
eb641093da Convert spaces to tabs.
Signed-off-by: Edwin <tkaw220@gmail.com>
2013-07-05 10:01:47 +08:00
Edwin
043e7fb1ce Convert indentation to tabs and change line ending to Unix.
Signed-off-by: Edwin <tkaw220@gmail.com>
2013-07-02 11:44:52 +08:00
Rob Gloudemans
7d148ad0ac Removed reference from closure 2013-06-06 11:19:52 +02:00
Rob Gloudemans
81c95e5204 Added typehint to search method 2013-06-03 16:18:59 +02:00
Rob Gloudemans
822ce588f4 Updated readme and phpdocs 2013-06-03 16:12:08 +02:00
Rob Gloudemans
5ebd3d9cd2 Updated the search function, it now does a better search, including options, and it returns the rowid of the found item(s) 2013-06-03 16:10:21 +02:00
Rob Gloudemans
d41c69ff80 Updated rowid generate function to sort the options array, (better for search function) 2013-06-01 08:51:50 +02:00
Rob Gloudemans
c0fadee95b Updated readme and phpdocs 2013-05-31 08:05:05 +02:00
Rob Gloudemans
c0210e033a Added a search function 2013-05-31 08:00:30 +02:00
Rob Gloudemans
951c4a8b0f Updated Cart::update() method so you can also update the 'options', also added unit test for it 2013-05-31 07:28:13 +02:00
Rob Gloudemans
e549a74e1f Updated phpdoc 2013-05-30 17:08:29 +02:00
Rob Gloudemans
437d92cd7b Added Cart::addBatch() method for batch insertion, updated the Cart::update() method, so you can update other attributes too 2013-05-30 16:59:18 +02:00
Rob Gloudemans
c6473310d2 Added possibility to have multiple cart instances 2013-05-28 22:26:25 +02:00
Rob Gloudemans
e727682446 Fixed bug with row qty that wasn't correctly updated 2013-05-28 22:02:11 +02:00
Rob Gloudemans
6ba8ac50b4 Removed unneeded namespace reference 2013-05-28 21:27:34 +02:00
Rob Gloudemans
dadd9d4087 Updated README, updated some phpdocs 2013-05-22 20:49:45 +02:00
Rob Gloudemans
fa7e90e48a Initial commit 2013-05-22 20:12:34 +02:00