Skip to content

v2.4.0

Compare
Choose a tag to compare
@commercelayer-ci commercelayer-ci released this 31 May 09:19
· 63 commits to main since this release
574b8d0

What's Changed

🚀 Enhancement

Bundle support

We added a new kind attribute to the cl-add-to-cart, cl-price, and cl-availability components.

This new attribute indicates whether the code attribute refers to an sku (default) or a bundle.

Important

This feature is not fully implement on the cl-availability component. When kind is equal to bundle no information will be displayed and the component will be rendered as an empty box without any size.

cl-price

<cl-price kind="bundle" code="CLGETTINGSTARTED">
  <cl-price-amount type="compare-at"></cl-price-amount>
  <cl-price-amount type="price"></cl-price-amount>
</cl-price>

cl-add-to-cart

<cl-add-to-cart kind="bundle" code="CLGETTINGSTARTED" quantity="2">
  Add to cart
</cl-add-to-cart>

Full Changelog: v2.3.0...v2.4.0