Zid Themes Docs
  • Getting started
  • Twig reference
  • Theme file structure
  • zid-theme package
  • Theme Templates and Data
    • layout.twig
  • Store language and currency
  • Home template modules
  • Product template
  • Cart template
  • Settings Schema
    • text
    • number
    • textarea
    • select
    • radios
    • checkbox
    • checkboxes
    • range
    • color
    • image
    • product
    • category
    • category products
    • list
    • fieldset
  • Data reference
    • locals
    • store
    • cart
    • product
    • products list
    • category
    • categories list
    • session
    • customer
    • faqs
    • blogs
    • blog
    • page
    • main menu
    • request
    • orders
    • addresses
    • store payment methods
    • store shipping methods
    • store banks
    • asset_url
    • header_meta_tags
  • Zid-api Library
    • Product
    • Category
    • Cart
    • Blog
    • Customer
    • Settings
  • Upload themes and more
Powered by GitBook
On this page

Was this helpful?

  1. Data reference

session

To change app language and shipping country, make a POST to:

'/customer/lang-shipping-country'

with params:

  • redirect_to url to redirect after post

  • country country code supported by store

  • language language code 'ar' , 'en' if it's supported by store

  • '_token' as hidden input with value of {{csrf_token}}

"session": {
    "cartSessionId": "m7Ua4PauasAAA1xxxxxxxxxx",
    "customerToken": null,
    "lang": {
        "id": 2,
        "name": "عربي",
        "code": "ar"
    },
    "currency": {
        "id": 2,
        "name": "Saudi Riyal",
        "code": "SAR",
        "symbol": "س.ر.",
        "country": {
            "id": 183,
            "name": "السعودية",
            "code": "SA",
            "country_code": "SAU",
            "flag": "<https://zid-testing.s3.eu-west-1.amazonaws.com/static/sa.svg>"
        }
    },
    "webView": false
}
Previouscategories listNextcustomer

Last updated 3 years ago

Was this helpful?