The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Force subscription feed to be sent

blockablocka Member
in Bugs & Feature Requests edited November 2009
Is there anyway to force the subscription feed to be sent out? Waiting everyday until 3:00PM PST is not good for productivity.
Comments
  • brettbrett FoxyCart Team
    Hi Blocka.
    The subs only run once a day anyway, so I'm not sure how much it'd really boost productivity. How would you prefer things work? If we understand your needs we'll be better able to meet them as we continue to improve our functionality.
  • What does that mean the subs only one run once a day? I would simply like to test my script which receives the feed, with a real feed, based off of the actual (read:test) information which I have in there now.
    I should also mention, now that I'm here, that I setup a subscription with a frequency of 1d, and I have my feed receiver script, for the moment, just dump the incoming feed into a text file. It's been two days I haven't seen anything come in (I know the script is working and setup properly because the feed receiver script works for the data feed).
    Does this make it any clearer?
  • lukeluke FoxyCart Team
    Hey blocka. We never really thought about it from a testing perspective as we always recommend using scripts to test things out. The datafeed examples live here:
    http://wiki.foxycart.com/integration:foxycart:test_xml_write_to_file
    http://wiki.foxycart.com/integration:foxycart:test_xml_post

    As for the subscriptions datafeed, we may not be clearly communicating what that's for. On this page: http://wiki.foxycart.com/docs:subscription_datafeed we mention it is for sending info about past due subscriptions, subscriptions with end dates set or those that canceled today. If neither of those three things have happened, you won't see anything sent to your server from the subscription datafeed.

    Either way, using the example in the wiki and the test scripts, you should be able to integrate your code without needing the real thing (since you know what is in the transaction, you should be able to slap together a matching example XML file). That being said, if you'd like to vote for a way to fire off the subscriptions feed for your store directly in the admin, please do so here: http://requests.foxycart.com
  • I guess what I'm looking for, at least, would be a way to simulate the different "states" that the subscription feed sends back so that I can successfully test my end of the equation. As it is now, I would have to take the example subscription feed, and make a new feed up for each "state". This sounds time consuming and error-prone to me.
  • brettbrett FoxyCart Team
    Ah, good point. We've actually had some related discussion lately centered around testing and an XSD or DTD. Could you vote for the XSD here:
    http://requests.foxycart.com/

    We are working on getting an XSD, which should help in testing.

    We do provide the example XML:
    http://wiki.foxycart.com/docs:subscription_datafeed
    I'm sure you've seen that already. My first reaction to your above post was thinking that we perhaps need something with more options, but I think it's perhaps a little awkward since if we provided example XML it wouldn't actually relate to any existing subscriptions or customers in your own system. If you're using the sub datafeed then you're likely actually _doing_ something with all that info.

    Can you provide a bit more detail on your ideal solution? We could set states for subscriptions, but if it's just standalone data that doesn't relate to your store, you wouldn't actually be able to do any significant testing, right?
  • The XSD I think would help. Speaking purely in unit-testing terms, I would need a fixture for every state possible, so that I can unit test my code properly. Of course, this doesn't have anything to do with foxycart at this point. Just that at the present moment, setting up these fixtures is a little annoying.
Sign In or Register to comment.