We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30228
    • 8 Posts
    Sorry, I wasn’t entirely clear.

    When I go through the process and submit a subscription via FoxyCart everything works fine but the users aren’t added to the specified user group? Is it intended to be automatic?

    I added a page using the snippit "[!FoxyCart_Subscription_Manager!]" and set that URL as the datafeed in the FoxyCart admin but I can’t tell how to invoke either the subscription manager or access the datafeed to promote the users that subscribe.

    Perhaps I’m just overthinking this or not understanding how it works in the end. smiley
      • 29635
      • 361 Posts
      Ah, yes, it definitely should be automatic. That’s the whole point wink
      "How to invoke the subscription manager" is just to point FoxyCart’s XML datafeed to that URL.

      Check out the datafeed test scripts here: http://wiki.foxycart.com/integration
      Use the one to grab what FoxyCart’s actually sending, then use the other to post to your [!FoxyCart_Subscription_Manager!] page and see what kind of output you’re getting. (And if that doesn’t make sense, let me know. That’s the best way to test though.)
        Need MODx Ecommerce? Try FoxyCart!
        • 16834
        • 93 Posts
        Just a quick question if you don’t mind.

        I am building a MODx site that requires paid subscription to access certain pages. I have tested both the FoxyBack and FoxyCart Webuser Paid Subscriptions snippets/modules to integrate with FoxyCart.

        The great thing about FoxyBack is that magic of an unknown user appearing in my user database immediately after a confirmed purchase. However, as far as I can tell, FoxyBack does not offer the wonderful ability of tracking whether a user has a current subscription or not.

        The issue I have with FoxyCart Webuser Paid Subscriptions is that the purchaser has to already be a registered user of the site. Is there a way of getting FoxyCart Webuser Paid Subscriptions to allow an unregistered user to create a cart and then enter the newly paid-up subscriber into my user database after a successful purchase at FoxyCart? I would love to remove the complexity of local registration prior to subscription purchase.

        I am not a coder so don’t really know what I am looking for here.

        Many thanks

        Leapy
          • 497
          • 1 Posts
          Hello, would anybody be willing to assist me offline? I’m very close, but it is not working correctly for me.

          I can register, go back to the subscribe page, click on the subscribe link, go into foxycart and pay, and return to the site. But, it does not add the user to the web group. I checked the database and it doesn’t show that a row was added in the foxycart subscription table. Somewhere I haven’t added something correctly...

          I could use some advice, or if someone would be willing to take a look, that would be wonderful!!

          Thanks! AK
            • 16834
            • 93 Posts
            Hello there

            I finally got mine all working but it takes a while. You need to separate out the two stages - FoxyCart sending correctly data and Modx manipulating that data.

            Somewhere on the wiki are some test XML data feeds that replicate the feed from FoxyCart. Use those to work out why the users are not being added to the correct groups.....

            L
              • 30228
              • 8 Posts
              Hello. I have a quick question about modifying the subscription manage snippet portion.

              The code contains this portion which, if I’m not mistaken, looks through the options array sent from FoxyCart.

              foreach($detail->transaction_detail_options[0]->transaction_detail_option as $option) {
              	if($option->product_option_name[0]->tagData == 'userID') {
              		//	if it does, get the user ID
              		$userId = $option->product_option_value[0]->tagData;
              		$logs .= "userId = " . $userId . "\n";
              	}
              }
              


              I want to retrieve an additional option so I can do one query for a subscription and one query for an event registration but I can’t seem to figure out how exactly the array is set up to grab each options name and value counterpart. Can you give me some advice please?

              I tried changing the foreach row to "foreach($detail->transaction_detail_options->transaction_detail_option as $option) {", dropping the explicit call to row 0 of the array but it didn’t quite work.

              Thanks a lot!
                • 3349
                • 126 Posts
                Quote from: bob1000 at Jul 08, 2008, 04:26 PM

                If you need more help, I’ve written some documentation on this. It’s not completely finished but it might help.

                Hello

                Is there anymore documentation on the setup process, Im looking to use the padi subscription snippet and would appreciate more help piecing all the differnet parts together.

                Thanks in advance

                bS

                  • 10076
                  • 1,024 Posts
                  Hi,

                  I did not get very far, acctually got stuck here:

                  Enter the URL of this new page in your FoxyCart admin Data Feed page.

                  What FoxyCart admin Data Feed page? There is none such page.

                  Frank.
                    • 3707
                    • 241 Posts
                    Did you sign up for a FoxyCart account?

                    You enter the data feed url under Store>advanced on your FoxyCart admin pages.
                      • 10076
                      • 1,024 Posts
                      aha, never read that. Well that must be it than, cheers,

                      best frank.