Jump to content

Using smarty to limit results displayed in a table.


Recommended Posts



I'm using prestashop 1.6.011


Is it possible to filter results in your template while using Smarty statements?



{foreach from=$variableA item=x_combination name=x_combinations_qty_prices}
{if $smarty.foreach.variableA.first}


{if $smarty.foreach.variableA.first}

makes it possible to display a <th></th> in a table.


Now the table lists all combinations available for a product

But I want to filter the table results based on a selection made by the radio button control


So I want to only show the prices of size M in the table when I select size M. See screenshots attached.


Can this be done using Smarty statements?





Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More