1.3.0-beta.2
Pre-releaseBreaking Changes
The option currencySeparateBySpace was misspelled (currencySeperateBySpace) and has now been corrected. If you use this option, make sure to update your option key.
New Features
Ability to sent cart information to PayPal
There is a new paypal.purchaseUnits
option which in combination with the new $cart->payPalPurchaseUnits
method helps to provide PayPal with additional information about the user’s cart.
Get array of tax rates from ProductList
s
If you have products with different tax rates (e.g. 7 % and 19 %) and want to show the sum of tax grouped by the tax rate you can use this method.
Added two new options to format price
These two new options overwrite the formatting from localeconv()
(decimal_point
, thousands_sep
). If the option is not set the price is formatted by your locale settings.
Added support for composer
Merx is now on Packagist. You can now install this plugin with composer require wagnerwagner/merx
.
Improvements
- Improved productList 086d59c
- Empty cart on
$cart->delete()
599e414 - Fixed formatePrice() shortcut. Thanks to @distantnative 4c77242
- Improved Cart::remove() 46bb6a1
- Exceptions for missing PayPal Keys 156d9ac
- Improved section/order blueprint 6fc3218
- Improved Cart::getStripePaymentIntent. Get Stripe’s PaymentIntent only for carts with positive sum 0c79dd3
- Fixed numbers for non English websites 0218a16
- Disallowed duplicate for orders and order blueprints e160514
- Changed German
error.merx.paymentCanceled
bfb9ec9 - Fix: Save cart on Cart::__construct() e304664
- No longer check product page for intendedTemplate. Check if price field exists instead 14070ab
- Unified ProductList::__set() f022edb
Updates
- Updated paypal/paypal-checkout-sdk 859a351