Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • SlothMonkey 17 posts 56 karma points
    Feb 02, 2015 @ 17:44
    SlothMonkey
    0

    Generating a transaction report

    I'm new to using tea commerce and right now I'm wondering how I can implement a transaction report based on the countries that have bought a product through my store and wither or not I have the ability to specify a date range in which the report should be generated and cover.

  • Tom Steer 161 posts 596 karma points
    Feb 03, 2015 @ 09:06
    Tom Steer
    0

    Hey,

    The best way I beleive for this is to. Run a sql query to return the OrderIds and then once you have the Ids of the order that you need for your report you can the use TC.GetOrders method to get the actual order objects back to build your report from.

    Hope this helps.

    Tom

  • Anders Burla 2560 posts 8256 karma points
    Feb 03, 2015 @ 13:40
    Anders Burla
    0

    As Tom says the easy way is to create a custom dahsboard maybe and then some UI to display the info you need to show/download.

    Kind regards
    Anders

  • SlothMonkey 17 posts 56 karma points
    Feb 03, 2015 @ 14:42
    SlothMonkey
    0

    Would I be able to do such a thing throw a console program to generate this in a text file?

  • Anders Burla 2560 posts 8256 karma points
    Feb 03, 2015 @ 14:44
    Anders Burla
    0

    Hmm good question. The dll files do some magic with Umbraco when it starts up - it starts uf the dependency handler of Tea Commerce.
    DependencyContainer.Configure( Assembly.Load( "TeaCommerce.Umbraco.Configuration" ) );

    Dont know if everything will work if you run in from a console app as TC need the web.config to find the connection string etc.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft