Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
{% include "vitrin:account/address_dialog.jinja" %}window.address_dialogaddress_dialog is added to the window object with the following methods:{ addressId: number } ā Opens in "Edit Address" mode with the specified addressvitrin:address:submitted Eventwindow.location.reload() if reloading the page is sufficient for your theme's flow.address_dialog. Use this key to apply scoped style overrides.window?.address_dialog?.open).vitrin:address:submitted event for updates.| Method | Parameters | Description |
|---|---|---|
window.address_dialog.open() | none | Opens dialog in "Add New Address" mode |
window.address_dialog.open(data) | { addressId: number } | Opens dialog in "Edit Address" mode |
window.address_dialog.close() | none | Closes the address dialog |
| Event Name | Detail Structure | Description |
|---|---|---|
vitrin:address:submitted | { addressId?: number, isEditMode: boolean } | Fired after successful address submission |
{% include "vitrin:account/address_dialog.jinja" %}window.address_dialog objectvitrin:address:submitted event on successwindow.zidCustomStyles.address_dialog