We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15143
    • 9 Posts
    Hey everyone....

    I am fairly new to the modx scene. I am trying to help a friend with his site and he wants a subscription section. I have configured the FoxyCart on the site. I do not have a form created yet, as I hoped it would be in the setup from FoxyCart. Did I miss something or am I just needing more and more configuration?

    Any help is appreciated!

    Thanks in advance.
      • 3707
      • 241 Posts
      Which form do you mean, the user registration form or the payment form?

      You need to use something like WebLoginPE to handle the user registrations on the site. FoxyCart will generate the cart and checkout form.

      Also note that the webuser paid subscriptions code is fairly old now and won’t work with the latest version of FoxyCart as the XML is different.
        • 15143
        • 9 Posts
        I appreciate the info. I will look at it this afternoon. I wasn’t sure how FoxyCart actually integrated into the registration/user subscription of modx. I was hoping there would be a bit more info, but that’s ok. I set my FoxyCart store version to 0.4.0 which is what is listed in the modx add-ons section. If there is code for the newer store versions, I am up for using it, but I don’t feel confident enough to write it.

        Do you know of any other plugin that would work. I am not married to FoxyCart, just the monthly subscription and recurring billing that they provide.

        Thanks again.
          • 3707
          • 241 Posts
          It doesn’t integrate as such, it simply adds an existing user into the webgroup you specify when setting up and adds/removes data from a custom table. Hence the need for another way of creating users. I believe FoxyBack can create MODx users from FoxyCart customers and also users a later version of FoxyCart but it can be tricky to set up.

          Version 0.4.0 is the latest FoxyCart version that works with the paid subscriptions snippets and version 0.5 is the latest XML version I believe. I’m in the process of adding subscriptions to a site myself, a couple of years after the last time I did it (with FoxyCart), and they were the latest versions I could get to work with the existing code. I couldn’t find any other cart solutions that handle subscriptions, so I used FoxyCart Webuser Paid Subsciptions again even though it’s old. Not using the latest FoxyCart version is not ideal but I don’t have the time to modify the code (maybe if I ever get some of that "Free time" I’ve heard about!), and anyway, it does work.

          If you have any problems setting it up, post back and either myself or someone else can help.
            • 29635
            • 361 Posts
            A few quick notes in response to the above.
            * FoxyBack probably shouldn’t be used by anybody at this point. It takes a LOT of work to get going and if you really need something that tightly integrated you’ll probably want to roll it yourself.

            * The FoxyCart XML is no longer versioned independently from store versions, and every version has changes (mostly additions, not usually modifications or removals). So the latest XML is always going to be whatever the latest FoxyCart version is, and example XML will be on the FoxyCart wiki (though the v0.7.0 sample isn’t up yet).

            * We (FoxyCart) really don’t recommend using older versions. v0.4.0 is super old and has many issues that have been fixed in subsequent releases.

            Ultimately though, the main reason you may want to or need to rebuild the paid webuser integration is that FoxyCart has rebuilt its subscription handling twice since v0.4.0. The latest version, v0.7.0, supports PayPal-based subscriptions and has a full subscription API. The old code relied on various cludgery and hacks to work around limitations but the latest FoxyCart release not only allows more flexibility but would radically simplify what this is doing. (I’d really, really like to write it up myself but I just don’t have the time, unfortunately. I’m more than happy to provide as much guidance as needed though, if anybody’s interested.)

            Also, as far as user registrations go, you can handle that in two ways:
            1) Force (using FoxyCart’s Single Sign On) a user to be registered and logged into MODx prior to allowing them to pay for the subscription.
            2) Allow a checkout from an unauthenticated user, and automatically create the user in MODx from the FoxyCart XML datafeed (with synched MD5 password hash). Then either force user info updates through FoxyCart to modify the MODx user or make sure you sync changes to FoxyCart when they’re changed in MODx (via the FoxyCart API).

            I hope that helps. Again, this snippet really should be rewritten because it’d just work a lot better and it’d allow for PayPal as well. I hope that helps, and I’m not just raining on the parade.
              Need MODx Ecommerce? Try FoxyCart!
              • 3707
              • 241 Posts
              Thanks for the feedback Brett.

              It’s unfortunate there isn’t an up-to-date MODX-FoxyCart integration, but it seems nobody has the time/ability to build it (myself included on both counts). I guess it’s also unfortunate for you guys since you potentially lose some customers.

              I agree that using older store versions is not a good idea but for someone like myself who needs a subs system in a hurry, I can either look for an alternative or use an older (but working) version of FoxyCart and look to update it in the (near) future.

              I like your cart so I prefer the latter option and hopefully I can find some time to work on an update. Although I’d prefer to have the PayPal support so it might have to be sooner than later!
                • 15143
                • 9 Posts
                Bob,

                Thanks for the offer for help. I think I have everything for foxycart and foxyback to work. I see that it isn’t recommended, but I hope it’s right. I do need to know how to get the user registration form and foxycart to integrate in the webforms to work.

                If you have time, could you give me some pointers on that part, please?

                Thanks!

                TheManCan,

                I am willing to set this up using the api, but I will need some help working through it. I am not sure the specifics, but I can hack at it a little bit and get some code configured. Once we have it integrated, we can put it in the repository for others to use.

                Thanks!
                  • 15143
                  • 9 Posts
                  Bump....

                  I am stumped. WebLoginPE has very little integration instructions for use with foxycart. I need some help if you are up for the challenge.

                  Thanks!
                    • 3707
                    • 241 Posts
                    Are you using foxyback or the paid subscriptions snippet/module? I haven’t used foxyback so I can’t help much there but I can help with the other.
                      • 15143
                      • 9 Posts
                      I installed it but had no idea how to integrate it. It appears that the FoxyCart 0.5 and above uses the SSO and API integration to accomplish everything directly. I just need to figure out how to get it to play nice with webloginpe. Maybe I will base my stuff off the webloginpe and re-write what I need to. That is where I am hesitating. I don’t really have the time to re-write a lot of code. I haven’t been keeping up my skills as of late.