Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
This page documents the new Vitrin account functions and shows the old Zid equivalents.
window.zid.account
.zid.account.addresses()
zid.store.customer.fetchAddresses()
zid.account.addToWishlists(payload)
payload
(object, required) — { product_ids: string[] }
zid.account.shareWishlist()
zid.account.removeFromWishlist(product_id)
zid.store.customer.removeFromWishlist(product_id)
product_id
(string, required) — The product ID