47
loading...
This website collects cookies to deliver better user experience
addItem()
used to accept 4 params, but now it accepts 2 params, with the second being an options
object.New cart state for cart interaction. It'll allow for little notifications like, "item added to cart" and disappear after a few seconds.
A "custom" cartMode
if you wanted to use the cart state and logic but with a different payment platform
Helper functions that'll help with rendering UIs, but I can't speak much about this one yet 🤐
Methods for dynamically adding metadata for products and prices