Advanced Search property not showing up in backend
I'm trying to add phone number to the new advanced search, but I must be doing something wrong or forgetting something, as it does not show up.
Can anyone point me in the right direction?
This is my filter
[AdvancedFilter("billingTelephone", "Phone Number", "A full or partial cart number to search on", Group = "Customer")]
public class OrderPhoneNumberFilter : OrderAdvancedFilterBase
{
public override bool CanApply(string value) => !string.IsNullOrWhiteSpace(value);
public override IQuerySpecification<OrderReadOnly> Apply(IQuerySpecification<OrderReadOnly> query, IOrderQuerySpecificationFactory @where, string value)
{
return query.And(where.HasProperty(new KeyValuePair<string, string>("billingTelephone", value), StringComparisonType.Contains));
}
}
And this is the composer
[ComposeAfter(typeof(VendrComposer))]
public class VendrSearchFilterComposer : IUserComposer
{
public void Compose(Composition composition)
{
composition.WithCartAdvancedFilters().Append<OrderPhoneNumberFilter>();
}
public class VendrSearchFilterComponent : IComponent
{
public void Initialize()
{
}
public void Terminate()
{
}
}
}
Advanced Search property not showing up in backend
I'm trying to add phone number to the new advanced search, but I must be doing something wrong or forgetting something, as it does not show up.
Can anyone point me in the right direction?
This is my filter
And this is the composer
Umbraco 8.18.0
Vendr 2.1.1
Stilly question, but you are looking in the cart editor UI and not the order editor UI (sorry, gotta ask the simple questions first).
Matt
Well... yes that would be a totally silly question, normally 😅🤦♂️
If I look at the new carts UI, that I've totally forgot was there, it's there...
And changing
to
Makes it appears in the orders section, where I want it.
Sorry for the brain fart, and thanks 👍
Hehe, no judgment here. I have many brain farts most days 😂😂
I do love a simple support request now and again 😁
is working on a reply...