Copied to clipboard

Flag this post as spam?

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


  • Anton 135 posts 186 karma points
    Oct 28, 2015 @ 22:21
    Anton
    0

    How I can get orders and invoices in Controller?

    How I can get orders and invoices in Controller? and then show it by customer for their profile page

  • Barry Fogarty 493 posts 1129 karma points
    Oct 28, 2015 @ 22:34
    Barry Fogarty
    0

    Hi Anton,

    It will be something like

    var invoices = _merchello.Query.Invoice.GetByCustomerKey(CurrentCustomer.Key);
    

    In case you havent seen it, check out the Bazaar starter kit. Even if you don't want to use it, the source code is very handy as a reference. The above comes from the AccountHistoryContoller:

    https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Bazaar/Controllers/BazaarAccountHistoryController.cs

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies