Customer
The Customer component of the Zid Themes Library provides functions to retrieve customer-related information, such as addresses and purchase history.
Fetch Addresses
Function: fetchAddresses
Description: Retrieves a list of addresses associated with the current customer.
Usage:zid.store.customer.fetchAddresses().then(function (response) { /* Handle response */ });
Check If Product Bought
Function: isBoughtProduct
Description: Determines if the current customer has previously purchased a specific product.
Parameters:
productId
- The unique identifier of the product to check.
Usage: zid.store.customer.isBoughtProduct(productId).then(function (response) { /* Handle response */ });
Last modified: 17 days ago