Commit Graph

67 Commits

Author SHA1 Message Date
Patrick Henninger
b39e78db5d Remove types from method parameter 2018-12-21 19:06:59 +01:00
Patrick Henninger
892c76cc61 Updated readme
minor modifications
2018-12-21 18:37:36 +01:00
Patrick Henninger
8ac18c1759 Fixed mistake with InstanceIdentifier 2018-12-21 17:54:51 +01:00
Patrick Henninger
388951d289 Fixed cart calculation methods 2018-12-21 17:32:55 +01:00
Patrick Henninger
706261dd4f Added InstanceIdentifier 2018-12-21 17:11:18 +01:00
Patrick Henninger
d947fe8a57 minor additions 2018-12-21 16:56:54 +01:00
Patrick Henninger
9e4c6c4a71 Adjusted calcualtion tests need specific discount tests 2018-12-21 15:52:00 +01:00
Patrick Henninger
48df3f5d74 Adjusted for global discount
Fixed tests for Laravel 5.7
2018-12-21 15:18:27 +01:00
John Markese
803703d170 Update CartItem.php
Fix fatal error caused by instantiating a null associatedModel.
2017-08-22 10:29:39 -05:00
Rob Gloudemans
39de887e09 Made CartItem implement Jsonable, so it can be cast to json by laravel when building a response 2017-05-21 16:38:33 +02:00
Gregory Claeyssens
a3838c037b return row on update
When updating a cartItem it should be returned since updating it might
change it’s ID
2016-11-02 14:34:49 +01:00
Rob Gloudemans
143d51b22b Make associate() and setTaxRate() return self so it can be chained 2016-10-13 12:10:37 +02:00
Nadir Absemetov
2b59ca8f0e Update CartItem.php
Save options value in updateFromArray function
2016-10-12 17:24:49 +03:00
jorge
b313f8af43 fix falsy format numbers 2016-09-07 15:05:06 -04:00
Rob Gloudemans
476f248e8d Merge pull request #202 from jorgejavierleon/config_number_format
Set default number format in config file
2016-09-05 08:26:29 +02:00
Mikhail Lisnyak
e801689441 add options to buyable methods 2016-09-04 12:11:03 +03:00
jorge
03c9fb1791 Set default number format in config file 2016-08-26 11:08:38 -04:00
Rob Gloudemans
71cb7ce694 Working on improved configuration and automatically destroy cart on user logout 2016-08-03 19:41:35 +02:00
kekenec
007e941673 Fixed return type of "total" function
https://github.com/Crinsane/LaravelShoppingcart/issues/188
2016-07-30 18:45:45 +03:00
Rob Gloudemans
3e6195d46c Merge branch 'master' of github.com:Crinsane/LaravelShoppingcart 2016-07-14 10:07:48 +02:00
Rob Gloudemans
c0d89c9d2f Always return a Collection when searching 2016-07-14 10:05:20 +02:00
Rob Gloudemans
9d8f8c824b Merge pull request #178 from pendalff/master
Fix bug with incorrect call property_exists() in CanBeBought trait
2016-07-14 10:04:07 +02:00
Rob Gloudemans
53a1231188 Finally updated documentation for version 2 2016-07-14 09:53:23 +02:00
Sem Fukalov
8e0674ebbe Fix bug with incorrect call property_exists() in CanBeBought::getBuyableDescription() 2016-07-07 20:05:22 +06: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