Store Settings
The Settings component of the Zid Themes Library offers functions to access various store settings, such as retrieving lists of countries, city details, terms and conditions, and privacy policies.
Fetch Countries
Function:Â fetchCountries
Description: Retrieves a list of countries available in the store settings.
Usage:Â zid.store.settings.fetchCountries().then(function (response) { /* Handle response */ });
Fetch Cities of a Country
Function:Â fetchCitiesOfCountry
Description: Fetches a list of cities for a specified country.
Parameters:
countryId
 - The unique identifier of the country.
Usage:Â zid.store.settings.fetchCitiesOfCountry(countryId).then(function (response) { /* Handle response */ });
Fetch Terms and Conditions
Function:Â fetchTermsAndCondition
Description: Gets the store's terms and conditions as set in the store settings.
Usage:Â zid.store.settings.fetchTermsAndCondition().then(function (response) { /* Handle response */ });
Fetch Privacy Policy
Function:Â fetchPrivacyPolicy
Description: Retrieves the store's privacy policy as defined in the settings.
Usage:Â zid.store.settings.fetchPrivacyPolicy().then(function (response) { /* Handle response */ });