Copied to clipboard

Flag this post as spam?

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


  • Dan 1288 posts 3921 karma points c-trib
    Jul 15, 2013 @ 13:00
    Dan
    0

    Output custom property in Tea Commerce back-office

    Hi,

    How would I output a custom property in the Tea Commerce back-office?  So where you view the list of orders in the TC section in Umbraco, then click through to view the details of the order, how can I add a custom property in there?

    Thanks

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 15, 2013 @ 14:14
    Rune Grønkjær
    0

    You can edit the list as it's located in the SearchOrders.aspx file. You will want to add to the LvOrders element, where you could add extra information.

    Note that this file will be overwritten if you update Tea Commerce. So back it up before doing so.

    Hope that's what your'e seeking.

    /Rune

  • Dan 1288 posts 3921 karma points c-trib
    Jul 15, 2013 @ 15:00
    Dan
    0

    Thanks Rune.

    So I can edit the list of orders but not the EditOrder.aspx page (which is where I was looking, but it seems to be all code-behind)?

    Regarding the syntax for getting custom properties in that element, how does that need to be structured?  For example, to get the payment method it's:

    <%# Eval( "PaymentInformation.PaymentMethodId" ) != null ? PaymentMethodService.Instance.Get(StoreId, (long)Eval( "PaymentInformation.PaymentMethodId" )).Name : "" %>

    But how would I get a custom property on the order object in this situation? 

    Sorry for all the questions today, and thanks for your help.

     

    (Feature request by the way ;) It would be amazing to use the same Razor views in the back-office as on the front end, or at least have them split out so they can be edited fully.)

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 15, 2013 @ 23:24
    Rune Grønkjær
    100

    The edit order page loads a razor or xslt file of your own choice. You can choose it on the store settings. That means you have full freedom on the edit order page.

    As for the list, I'm not at all an expert on how to Eval and stuff on a list. I do know that you have the full order object at your disposal in the list. So try looking at how the other values are written and do something like it. :)

    /Rune

  • Dan 1288 posts 3921 karma points c-trib
    Jul 16, 2013 @ 01:30
    Dan
    0

    Perfect thanks.  I don't need the value in the search file - that was only because I didn't think it could appear in the edit file.  That's super handy being able to edit the view of the order in the back-office - just what I'm looking to do!  Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft