Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Warren,
You can get it from the IVendrApi or the IOrderStatusService
IVendrApi
IOrderStatusService
var orderStatus = _vendrApi.GetOrderStatus(order.OrderStatusId); var orderStatusName = orderStatus.Name; var orderStatusColor = orderStatus.Color;
Matt
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!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
Hi Warren,
You can get it from the
IVendrApi
or theIOrderStatusService
Matt
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!
is working on a reply...