We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32646
    • 87 Posts
    It was working earlier with a cart page, but at some point the basket stopped updating. Now the View Cart will show up with a "1" behind it, but when you open it there is one item with "0" quantity and nothing else will add to it.

    I have gone back over everything and can’t figure out what changed. I am getting this
    error:document.defaultView.getComputedStyle(h, null) is null


    The only other thing to do is nuke and pave and test with every change I make. Has anyone else seen this?

    UPDATE: OK, I have narrowed it down to modifying the SQL dump, because I was too lazy to go to each page and type everything in. Is TC changing other tables when it sets up a product?
      Just learning the ropes.
      • 15861
      • 24 Posts
      Hate to revive an old thread, but I’m having the same problem and wondering if you got it working, and how?

      Thanks
        • 12241
        • 80 Posts
        the View Cart will show up with a "1" behind it, but when you open it there is one item with "0" quantity and nothing else will add to it.

        This is exactly what is happening to me. I’ve upgraded a site from 0.9.3 to Evolution 1.0.2 and in doing so I accidentally installed the MODx example site which of course over wrote most of my page documents in MODx. So of course I had a back up of the database and figured I’d just re-import the whole thing and then re-do the upgrade installation of MODx (without the example site) so that I could install/upgrade the plugins. Everything was fine... or so I thought:)

        If anyone wants to take a look at the page code go to http://bit.ly/a2p6hw.
        Just add a product to the cart and the VIEW CART menu will show up with (1) item in it. Then click on VIEW CART and the cart opens up with 0 items in the quantity text field. Notice if you try to increase the quantity and update the cart the cart disappears.

        Maybe I should start a new thread on this? Hope someone out there is willing to help out on this, even though TC is not supported anymore or whatever it would be nice to learn how to fix this.

        Thanks!


        --------------

        update: okay, it’s fixed now. I was pulling my hair out on this one since I was following the directions on upgrading a modx site. I eventually just nuked the whole thing, database included. The problem was fixed when I finally set up the new database and changed the configuration file in the manager/includes folder with the new database name. Apparently, there was an issue with the old database, maybe when I imported the sequel dump there was still some stuff in there that was not overwritten... I’m sure there was human error on my part but I could not figure out what I did wrong to begin with and I looked at every option I could think of (ie namespace conflicts, config files mis-configured, file permissions mis-permissioned, files missing... everything seemed just fine).

        So if you get the problem of having your treasurechest cart not updating and only showing 0 in the quantity field of the shopping cart and you’ve trouble shoot’d everything a couple of times then try nuking your database and set up a new one. It worked for me:) Cheers.

        - oh yeah, and now for some reason my meta/tags tab does not show up when I’m editing a ’resource’ ... the modx manager still has a meta/keywords section for ADDING keywords and it says "click on the meta tab when editing a resource to add meta tags/ keywords" but when I go to a resource there are just two tabs "General & Settings". Why is modx bugging out like this? Maybe I’m the moron here, but this reminds me of working with windows in all of the moments of WTF is it doing this for? I’m sure once I really know my shit modx will be tits on a pig. Until then I’ll just keep hacking away... and learning as much as possible about php and mysql so that I can actually manage this beast! On a different note, thank you for making this software open source and flexible enough for dummies, ie. me smiley
          Environment:
          modx: rev 2.0.8-pl
          localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37