We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5173
    • 12 Posts
    What exactly is the status of FoxyBack? It seems to be recommended to do many things, but this thread and the code is significantly stale. Earlier posts by TheManCan indicated that there were several things planned for the next release. Has anything been developed? Has ANYONE gotten this to work? Is there a RIGHT way to install this thing? It looks like it’s what I need to finish this project, but so far I’ve installed it once with one result and again with a different result - neither resulted in a working installation however.

    Many questions remain:

    • What is the proper way to install? Via snippet, or direct SQL commands? If by Snippet, do we use the ’Execute snippet after saving.’ option?
    • What are the dependencies for FoxyBack? Does it work with ModX 0.9.6.3? With FoxyCart 0.4? What about the Bounce snippet and the Redirect snippet?
    • What is the complete table schema? One attempt to install seemed to work only to err with a message about a missing email_archive’ table...
      • 24393
      • 83 Posts
      is this project still being developed?
        stevesunderland.com
        GRAPHICS | INTERACTIVE | MARKETING
        xhtml + ajax + seo websites powered by modx
        • 33712
        • 6 Posts
        Quote from: chrisbloom7 at Feb 22, 2009, 08:35 PM

        What exactly is the status of FoxyBack? It seems to be recommended to do many things, but this thread and the code is significantly stale. Earlier posts by TheManCan indicated that there were several things planned for the next release. Has anything been developed?
        Ouch, you’re right on with your point about the code being stale. I work for The Man Can, and we’ve spent a lot of time on other projects, and no time on FoxyBack. I’m not the original author, but I am the current maintainer, and a quick look shows 15+ bugs in our Google Code repository that need to be addressed. I consider the code in our repository to be alpha or pre-beta quality.

        Quote from: chrisbloom7 at Feb 22, 2009, 08:35 PM

        Has ANYONE gotten this to work? Is there a RIGHT way to install this thing? It looks like it’s what I need to finish this project, but so far I’ve installed it once with one result and again with a different result - neither resulted in a working installation however.
        We’ve gotten it running on three different sites, but then again, we’re the original developer. That said, it was a painful process to get it all working each time, with much testing needed.

        Quote from: chrisbloom7 at Feb 22, 2009, 08:35 PM

        Many questions remain:
        Again, you’ve hit a sore point -- our docs suck. Let me try to assist the best that I can:

        Quote from: chrisbloom7 at Feb 22, 2009, 08:35 PM


        • What is the proper way to install? Via snippet, or direct SQL commands? If by Snippet, do we use the ’Execute snippet after saving.’ option?
        You’ll need to use phpMyAdmin to run the sql/foxyback-install.sql against your MODx database. Back up your database first, as this creates a bunch of pages, chunks, and snippets. Drop the Foxyback folder into your assets/snippets/foxyback/ folder.

        Quote from: chrisbloom7 at Feb 22, 2009, 08:35 PM


        • What are the dependencies for FoxyBack? Does it work with ModX 0.9.6.3? With FoxyCart 0.4? What about the Bounce snippet and the Redirect snippet?
        It doesn’t require more than a out-of-the-box MODx; 0.9.6.3 should be just fine. A quick look shows that it requires the Bounce and Redirect snippets. Will also work with FoxyCart 0.4, and likely later versions.

        Quote from: chrisbloom7 at Feb 22, 2009, 08:35 PM


        • What is the complete table schema? One attempt to install seemed to work only to err with a message about a missing email_archive’ table...
        Foxyback is supposed to automatically create the tables that it needs; see create statements in includes/foxyback.tables.php. Those statements will automatically run if you don’t have any tables in your schema with ’foxyback’ in the name -- see Foxyback::isInstalled and FoxyBack::firstRun in foxyback.class.inc.php.


        I’m a little embarrassed by the sorry state of the project; as it stands, it’s only intended for people who like to get their hands dirty with PHP and can make the time to read the code and understand how it all fits together, which I admit is a difficult task. Please post further questions here or on our Google Code project.

        I’m going to try to make some time for a major redesign of Foxyback, as it has the potential to be an enormously useful tool for the community. As it is right now, it doesn’t feel very MODx-like, the install process is way too difficult, and parts of the code are just plain funky. We’re going to discuss the future of this project and decide what’s best for the project and the community.

        Regards,
          • 9496
          • 113 Posts
          I love getting my hands dirty but..I plan on using this and I will document my process whcih may be helpful from the development/question angle.

          So here we go...I am working on a subscription based site. The front end CMS is obviously ModX, pretty much standard install -- The cart processing will FoxyCart.

          This is what FoxyCart needs to handle. Take the order/registration/purchase information, create a username out of that and shoot that back to ModX as a web user called "subscriber" upon completion.

            • 9496
            • 113 Posts
            Step one installation:

            Downloaded the package from the repository. Unzipped it and loaded it into the snippet directory, which I thought was the proper directory from a few posts back.
            Installation text says it should be in the assets/modules/not assets/snippets. (?)

            -Loaded the SQL data manually via phpMyAdmin. Not being an SQl guy I couldnt get it loaded so I -simply added each insert block within the foxy-back-install.sql file (under the sql tab)
            -That created some files (?) not sure which ones are created or why but thats for later.
            -At this point I dont know what is installed or have any indication of a successful install, or what I should be seeing or how/why it is supposed to work. But no worries.

            Signed up for a foxycart account and turned on XML data feed.
            Within the foxycart admin there is a field to set a data feed url. Since there is no documentation as to what this is supposed to be set to I take a stab and try to set it to the datafeed processor url that the install created.

            /FoxyBack - order-manager/datafeed

            /run transaction through foxycart using the test accounts for Quantum Gateway. Transaction works and it appears to show within the FoxyCart admin interface.

            Load up the datafeed-processor and the result is "error: no post data."


            To be continued...

            To be continued..
              • 9496
              • 113 Posts
              Holy smokes...Time to start over...
                • 9496
                • 113 Posts
                Okay I started over and went through the install process.

                First the install SQL file. There needs to be a complete way to add the appropriate table. Versus running the first 3 commands, having to run a snippet to build the tables then running the final insert command. Im not well versed enough to just combine the two, but ideally that would need to happen for the status object to work.

                Now that I have it installed there are a bunch of questions that I am going to be throwing out there. As I said in the original post, I am going to be needing to set up subscriber users but also single purchasers through the cart. I have noticed that whenever anything comes through the cart process FoxyBack adds it to the user database. Thats fine as far as the subscription goes, but if someone orders say a t-shirt, then they shouldnt be granted access as a subscriber. Im thinking the FB automatically adds all unique user transaction. Is there anyway to circumvent that, so that the only time FB creates users is when the transaction is in the subscriber category?

                -I am also wondering if there is a way to automatically log in a user once the transaction has been approved? I could send them back to the login page I suppose (via the confirm receipt) and then have them log in again...

                Also, is there a way to "downgrade" a subscriber if Foxycart tells FoxyBack that the subscription is inactive? I am thinking there probably is but I havent become comfortable enough with how all of the pieces fit together just yet to figure out where that may be addressed.

                more to come...
                  • 9496
                  • 113 Posts
                  So I am going to go ahead now and create a store and simply have to add web users by hand. Obviously not ideal but there is no real way for me to figure out what’s going on with this and how to modify the included classes.
                  I’m thinking that there must be some hook within the data feed processor snippet that indicates whether its a subscription or not and a simple if/else would differentiate the two (allowing non-subscription transactions to pass through the user creation process) but I really cant nail down where that would be found.

                  It kinda sucks because I was pretty stoked when I first looked into it...

                  --- DEAD ---
                    • 9496
                    • 113 Posts
                    resurrected. Not dead yet, with the new version of FC .5 they now have a subscription feed (sort of) any idea on the process of using FB to specifically address that (so it only adds new users from subscription transactions)

                    Just thought Id toss that one out into the ether...
                      • 38755
                      • 43 Posts
                      I wish I had some insight for you, I’m making a site now that integrates Foxy Cart, but am doing so manually at this time. I just wanted to drop a note that I’ve followed your effort with interest, appreciate you sharing your experience and outlining the successes and failures.