Copied to clipboard

Flag this post as spam?

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


  • Warren Harding 132 posts 275 karma points
    Aug 14, 2021 @ 09:20
    Warren Harding
    0

    Retreiving OrderStutus

    Could you please advise how I can retreive the colour and name of the order status?

    This appears to be properties of OrderStatusReadOnly but I'm not sure how to get that only the OrderStatusId

    Thank you

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Aug 14, 2021 @ 10:25
    Matt Brailsford
    100

    Hi Warren,

    You can get it from the IVendrApi or the IOrderStatusService

    var orderStatus = _vendrApi.GetOrderStatus(order.OrderStatusId);
    var orderStatusName = orderStatus.Name;
    var orderStatusColor = orderStatus.Color;
    

    Matt

  • Warren Harding 132 posts 275 karma points
    Aug 16, 2021 @ 10:01
    Warren Harding
    0

    Awesome thanks for that

    Is there a list of the colour picker options that are the possible choices for status? I can't see to find a colour picker data type for that one.

    For example, we'd like to make custom CSS classes for "light-blue" to display that on the front-end

    Cheers!

Please Sign in or register to post replies

Write your reply to:

Draft