Developer forum

Forum » Ecommerce - Standard features » IsVariant as Boolean array?

IsVariant as Boolean array?

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have just noticed in 9.3.5 that IsVariant is now a Boolean Array (System.Boolean[]) .

Is there a reason for it? A new use case?

Thanks,

Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Bump!

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Adrian,

I think the reason why it has become a Boolean Array, is that we want to also identify simple variants.

I can see in the code, that when we have a product, which contains simple variants, the 'IsVariant' will be set to {true, false}, but when we have an extended variant, it will only be set to {true}.

Best regards,

Steffen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Steffen,

I see your point.

In this case, the condition in the Query should be IsVariant = true,false if I want to identify simple variants and isVariant = true if I want just the Extended variants?

Thanks,

Adrian

 

You must be logged in to post in the forum