Releases: lukepolo/laracart
Releases · lukepolo/laracart
[BREAKING CHANGES] New Money Formatter + 7.4 Support
This should solve PHP7.4 depreciating of money_fomrat. Also it should solve windows not being able to use LaraCart at all.
BREAKING CHANGES
International Formatting
International formatting has been replaced with currency code in the config.
/*
|--------------------------------------------------------------------------
| The currency code changes how you see the actual amounts.
|--------------------------------------------------------------------------
| This is the list of all valid currency codes
| https://www2.1010data.com/documentationcenter/prod/1010dataReferenceManual/DataTypesAndFormats/currencyUnitCodes.html
|
*/
'currency_code' => 'USD',
The Format Money Function
formatMoney signature has changed
public static function formatMoney($number, $locale = null, $internationalFormat = false, $format = true)
public static function formatMoney($number, $locale = null, $currencyCode = null, $format = true)
So please look through your code and replace anytime that you are using the $internationalFormat
.
Multi Qty Items Discounts Fixed
We have fixed an issue where you would have a multi qty item and the discount would not be applied to that item itself.
Support for Laravel 7
1.9.0 We only support php 7.2 / 7.3
1.8.4
Laravel 6 Compatibility
1.8.1 Laravel 6 remove helpers + style fixes (#258)
Laravel 6.0
support laravel 6 (#257) Thanks
Laravel 5.8
We are dropping support for anything lower than Laravel 5.5.
Coupon Fixes when involving fees
We discovered a few coupon bugs that would rarely cause issues if you are using fees. Otherwise your unaffected.
Bugfix for percentage coupon on item
Bugfix for percentage coupon on item (#246) * Bugfix for percentage coupon on item
Make events only fire once
Apply fixes from StyleCI [ci skip] [skip ci]