Dukaan Data
You can access your store data using these keys on server side with Nunjucks by simply mentioning the variable name. Example - {{DUKAAN_STORE.link}}
This data is available on client side in the window object in a key called Dukaan Data. For example window.DukaanData.DUKAAN_STORE
Variables
DUKAAN_STORE - Store related information like store id, store link, etc.
DUKAAN_CATEGORY_LIST - List of active categories
DUKAAN_CATALOG - This is list of Dukaan Categories with their products and other data
STORE_MENU - Navigation menu related data
DUKAAN_THEME_DATA - Theme related data like active theme, font, primary and secondary colors & theme sections
DUKAAN_BANNERS - This is a list of top banners and their related data
Only the essential variables are mentioned above, you can view the other variables by running console.log(window.DukaanData)
in your browser console.
Last updated
Was this helpful?