Commit Graph

30 Commits

Author SHA1 Message Date
Patrick Henninger
9e35faece2 Add validation and exception for weight to CartItem Constructor 2019-05-12 17:23:14 +02:00
Patrick Henninger
e83371d542 Removed unneccessary return statements 2019-03-01 15:11:31 +01:00
Patrick Henninger
1499475663 Replaced deprecated OR operator https://getcomposer.org/doc/articles/versions.md#version-range
Added 5.8.* compatibility
Updated dependency versions
Added phpunit result cache to gitignore
2019-03-01 14:59:44 +01:00
Patrick Henninger
5636a36388 Codestyle
ignore tests added to styleci.yml
2019-01-14 18:16:29 +01:00
Patrick Henninger
862030288c Codestyle 2019-01-14 18:11:13 +01:00
Patrick Henninger
0521280040 Further codestyle changes 2019-01-14 17:54:38 +01:00
Patrick Henninger
70073ccb92 manuall readded reverted changes 2019-01-09 13:06:16 +01:00
Patrick Henninger
55f1c4617f Revert "Manually merged https://github.com/Crinsane/LaravelShoppingcart/pull/502"
This reverts commit 5d117a0acd.
2019-01-09 12:22:25 +01:00
Patrick Henninger
dcab743407 Revert "Code formatting & quality"
This reverts commit 52a56768ba.
2019-01-09 12:22:15 +01:00
Patrick Henninger
52a56768ba Code formatting & quality
Cleaned up __get methods
2019-01-08 20:53:41 +01:00
Patrick Henninger
5d117a0acd Manually merged https://github.com/Crinsane/LaravelShoppingcart/pull/502
Added more tests
2019-01-08 20:00:28 +01:00
Patrick Henninger
1190d72b52 Add changes from https://github.com/Crinsane/LaravelShoppingcart/pull/350
Add changes from https://github.com/Crinsane/LaravelShoppingcart/pull/349
Add changes from https://github.com/Crinsane/LaravelShoppingcart/pull/478
2018-12-28 03:50:42 +01:00
Patrick Henninger
388951d289 Fixed cart calculation methods 2018-12-21 17:32:55 +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
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
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
Muhammad Sumon Molla Selim
41a3c0311d #153 (Cannot add zero price) fixed 2016-06-05 22:20:00 +06:00
Rob Gloudemans
0f20bef1af Large update for version 2.0 2016-05-12 10:19:38 +02:00