sartoric
1a34bda8ab
added CartItem::priceTotal for rounded total (from internal calculation)
2020-01-15 12:44:58 +01:00
sartoric
9cdacf901c
changed the strategy for cart values calculation (taxes per row),
...
test,
some fixes
2020-01-14 22:33:12 +01:00
sartoric
de1bf2a5ea
fix issue with the priceTax value that is not dynamically retrieved
2020-01-09 19:15:48 +01:00
sartoric
7d4704b413
Merge branch 'master' of https://github.com/bumbummen99/LaravelShoppingcart
...
Conflicts:
tests/CartTest.php
2020-01-09 19:07:01 +01:00
Patrick
8383901fba
Update Cart.php
2019-11-19 01:36:09 +01:00
sartoric
1341863d65
Dispatch "cart.merged" event,added a parameter to avoid dispatching "cart.added" events while merging
2019-11-18 10:34:23 +01:00
Patrick
73173955ad
Update Cart.php
2019-11-16 23:57:31 +01:00
Patrick
07a776aa33
StyleCI
2019-11-16 23:43:18 +01:00
Andrew Savchenko
5d7aee42d7
Fix code style
2019-10-31 21:33:05 +01:00
Andrew Savchenko
cb470f69a3
Fix products sequence after changing cart item options
2019-10-31 21:04:34 +01:00
Cristian
bb59a2e2dd
Added a method to erase stored cart
2019-10-31 13:20:30 +01:00
Patrick Henninger
d0cf5d7ab0
Corrected PHPDoc
2019-10-21 19:52:03 +02:00
Cristian
f31c153e3e
Update CartItem.php
...
weight variable in if block
2019-10-21 19:00:34 +02:00
Patrick Henninger
14e8a40534
Changed $taxRate from private to public, Solve https://github.com/Crinsane/LaravelShoppingcart/issues/436
2019-09-27 19:00:10 +02:00
Dan Tomlinson
7401f5bbb1
Replaced array_get with Arr::get as the helper method has been removed in 6.0
2019-09-06 16:49:50 +01:00
Patrick
74607eb5eb
Update ShoppingcartServiceProvider.php
...
https://github.com/bumbummen99/LaravelShoppingcart/issues/8
Added missing publish group parameter
2019-06-26 15:53:08 +02:00
Patrick
ecb4d9717a
Update Cart.php
...
Changed default value of $weight to 0
2019-06-23 00:25:32 +02:00
Patrick
0c36a1d72e
Update CartItem.php
...
Revert last change
2019-06-23 00:24:25 +02:00
Patrick
9d6a5dab8c
Update CartItem.php
...
Remove strlen from weight
2019-06-23 00:11:50 +02:00
Patrick Henninger
9e35faece2
Add validation and exception for weight to CartItem Constructor
2019-05-12 17:23:14 +02:00
Patrick Henninger
279e820760
Fixed weight integration, added testcase, fixed weird readme code example
2019-04-16 12:10:06 +02:00
Pascal Kousbroek
4d302fb4a2
Update Cart.php, fix CartItem::fromAttributes call
...
The CartItem::fromAttributes call is missing the $weight parameter, and the CartItemOptions don't work any more because of this.
2019-03-29 15:39:17 +01: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
7436422b01
Codestyle
2019-01-14 18:18:21 +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
21ebf67f99
Further codestyle changes
2019-01-14 18:05:10 +01:00
Patrick Henninger
d6c7226e35
Further adjusting codestyle
2019-01-14 17:56:43 +01:00
Patrick Henninger
0521280040
Further codestyle changes
2019-01-14 17:54:38 +01:00
Patrick Henninger
f93ae51838
Adjustements to code style
2019-01-14 17:42:23 +01:00
Patrick Henninger
59eadb74a1
Removed Cart facade from coverage (does not provide a public inteterface)
...
Exclude migrations from coverage
Added tests for InstanceIdentifier
Added InstanceIdentifier support to store, restore and merge
Added weight to CanBeBought trait
Excluded CanBeBought trait from coverage temporarily
2019-01-09 14:08:09 +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
13238f9883
Revert "Removed unnecessary assignments"
...
This reverts commit dbfe5e01fd .
2019-01-09 12:22:21 +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
dbfe5e01fd
Removed unnecessary assignments
2019-01-08 20:18:09 +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
423e2b7c3f
Restructuring
...
Added codecov
2018-12-28 17:00:55 +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
4cfd3e99b0
Added Cart merge functionality
...
Added Readme for merge
2018-12-28 03:16:29 +01:00
Patrick Henninger
3ebe09f6ab
Renamed migration file
...
Fixed migration being published multiple times
Added more tests
Fixed setGlobalTax and setGlobalDiscount
2018-12-23 23:24:05 +01:00
Patrick Henninger
8615c1131f
Added accessors for float values
2018-12-23 22:42:31 +01:00
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