Jump to content

Photo

Web API filtering order by an order attribute


  • Please log in to reply
1 reply to this topic

#1 ertank

ertank

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 August 2023 - 19:52

Hello,

 

Using Smartstore v5 and how can I filter an order having Attribute named XXX and value 0 using WEB API access?

 

I could not find a $filter example using an attribute so I am asking in here for help.

 

Thanks & Regards,

Ertan



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3823 posts

Posted 09 August 2023 - 13:23

This is difficult. The attribute data is stored in OrderItem.AttributesXml: XML formatted in Smartstore version < 5 and JSON formatted since version 5. So you would have to filter this string. I cannot say if this works because I haven't tried it yet.


  • stefanmueller likes this

Marcus Gesing

Smartstore AG