Jump to content

Update js-product-list with conditions


AfterGlow93

Recommended Posts

Hi, 

I don't know if it is possible but i need to have some advices.

I have a custom product-list tpl, which calls a listing of products from a query with getproducts function.

I would like to set some custom bootstrap button, for example "All products containing "x" word", then, update product-list using {foreach $products item=product} where $product.name|strstr:'x'

Is it possible ?

Thanks for your answer

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...