Jump to content

Using smarty to limit results displayed in a table.


twc02

Recommended Posts

Hello,

 

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?

 

 

post-900130-0-50010900-1434028618_thumb.png

post-900130-0-06797600-1434028625_thumb.png

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...