Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Zid Themes Library: API Integration
  • 🚨 Important Update: Zid Themes
  • Landing Page Development
  • Getting Started with Zid Themes
    • Introduction to Theme Development
    • Manage your Themes
    • Building Themes in Zid
    • Theme File Structure
    • Twig Syntax and Features
    • Zid Theme Packager
  • Templates
    • Layout
    • Home Page
    • Products
    • Cart
    • Store Language and Currency
  • Settings Schema
    • Text
    • Number
    • Text-Area
    • Select
    • Radio Buttons
    • Checkbox
    • Range
    • Color
    • Image
    • Product
    • Category
    • List
    • Fieldset
  • Code Snippets
    • Apple Pay Quick Checkout
    • Custom CSS Injection
    • Displaying the Store's Business Center Logo
    • Customizing Copyright Text
    • Store's Main Navigation Menu
    • Customer Wishlist
    • Products
      • Products Badges
      • Product Ratings
      • Remaining Product Stock
      • Sold Items Count
      • Product Filtration by Attributes
      • Grouped Products
      • Product Questions & Answers
      • Product Restock Notfication
    • SEO
      • Images alt text
      • Themes SEO Marketing Tags
    • Marketing
      • Metafields
      • Gift Feature
      • Loyalty Program
  • Zid Themes Library: API Integration
    • Products
    • Product Categories
    • Cart
    • Blog
    • Customer
    • Store Settings
  • Data Reference
    • Locals
    • Store
    • Cart
    • Product
    • Products List
    • Category
    • Categories List
    • Session
    • FAQs
    • Customer
    • Blogs
    • Page
    • Main Menu
    • Main Navigation Menu
    • Request
    • Orders
    • Addresses
    • Store Payment Methods
    • Store Shipping Methods
    • Store Banks
    • Asset URL
    • Header Meta Tags
    • Loyalty pogram Wallet
  • Themes CLI
    • CLI Authentication
    • Theme Create
    • Theme Package
    • Theme Update
    • Themes List
    • Theme Preview
  1. Zid Themes Library: API Integration

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 */ });
Modified at 2024-11-05 12:47:20
Previous
Customer
Next
Data Reference
Built with