Developer forum

Forum » Ecommerce - Standard features » Filter by alphabeth

Filter by alphabeth

Jonas Mersholm
Reply

Hi,

I havent been able to make any search filters that did exactly what i am looking for, so, i hope you know any solutions:

How do i filter out a productlist by the beginning letter in the product name?

Lets say i would like to only display all products starting with A?

 

Best regards.

Jonas


Replies

 
Merethe Vrå Andersen
Reply

Hi,

Maybe with If statements?

<!--@If(Ecom:Product.Name<startswith>'hy')-->- <!--@Ecom:Product.Name--> [Product.Name starts with 'hy']<br /><!--@EndIf-->

http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/If-statements.aspx

Kind regards,
Merethe

 
Nicolai Høeg Pedersen
Reply

Hi Jonas

You can also use search:http://developer.dynamicweb.com/documentation/for-developers/ecommerce/parameter-based-search.aspx

​BR Nicolai

 

You must be logged in to post in the forum