wCart Tutorial part 5. Add Session and Arrays to the Template

There’s definitely some bugs in Wappler. I am unable to get most of the Session Manager related setup to work. I wonder if it’s because I’m trying to define them in a Header Include file? It appears the “config.js” under dmxAppConnect holds the Session Storage structure.

Even though I define these in an Include file they are showing under the “index” page.

    "index": {
        "sessionStorage": [
          {
            "type": "object",
            "name": "cart",
            "sub": [
              {
                "type": "key_array",
                "name": "items",
                "sub": [
                  {
                    "type": "text",
                    "name": "product_name"
                  },
                  {
                    "type": "number",
                    "name": "product_price"
                  },
                  {
                    "type": "number",
                    "name": "product_quantity"
                  }
                ]
              }
            ]
          },

I get the spinning wheel of death when trying to expand the Session Storage within the Data Bindings dialog.
image

I also do not see any items under the Name field for the session.set, but my Session Manager definitely has the defined variables/objects.

Next Part

1 Like