v2.9.0
What's Changed
🚀 Enhancement
- Add the close button to the minicart by @marcomontalbano in #86
- Add ability to set custom name and image when creating the line item by @marcomontalbano in #87
- Update all dependencies to the latest major by @marcomontalbano in #88
- Mini-cart opens earlier to improve user feedback by @marcomontalbano in #90
- Ability to set custom order attributes when creating the order by @marcomontalbano in #91
⚠️ Deprecation notices
languageCode
is deprecated and it will be removed in the next major version (v3.0). UsedefaultAttributes.orders.language_code
instead.orderReturnUrl
is deprecated and it will be removed in the next major version (v3.0). UsedefaultAttributes.orders.return_url
instead.
We added the ability to set custom order attributes when creating the order (#91).
<script>
window.commercelayerConfig = {
. . .
- languageCode: 'en',
- orderReturnUrl: 'https://example.com'
+ defaultAttributes: {
+ orders: {
+ language_code: 'en',
+ return_url: 'https://example.com'
+ }
+ }
}
</script>
Full Changelog: v2.8.2...v2.9.0