Migrating from Toolkit Version 1
Version 2 of the toolkit brings several design and functionality updates to the components. Migration is recommended in order to access the full suite of current and upcoming Reflow features.
Updating the CDN link
To import the new version you only need to change the versioning number of the CDN links:
v2 will keep most of the existing toolkit functionality as is, without requiring changes to your code.
However, there are a couple of issues to look out for when upgrading:
- The Product component now displays the product's categories as links under the product title. If you wish to hide them so that your product page looks the same as it did with v1 of the toolkit, use the
showattribute and omit "categories" from the list.
- An "Add to Cart" button is now shown on products in Product List. If you wish to hide it use the
showattribute and omit "add-to-cart" from the list.
- The HTML structure of the Cart component was changed to streamline the checkout into a single step. If you've written custom CSS to overwrite the styling of the cart, you will likely need to update your code.
Version 1 of the toolkit will continue working indefinitely, however it won't receive any further features or bugfixes. For new projects we recommend using v2.