Jump to content

Add table on product page


Recommended Posts

I am trying to display a product's dimension table inside the description of every product's page.

There are two table files, one for each man and woman clothing.

There are more than one category for each (male jackets->category id=2, male t-shirts->category id=4, etc...)

I added the following code inside product.tpl: 

 

{$mancateg = array (2, 4, 6)} 

{foreach($mancateg as $value)}

  {if ($value == $smarty.get.id_category)}

    {include file="./men_table.tpl" products=$products}

  {/if}

{/foreach}

 

the code above is only for the male situation. but it doesn't work.

 

f I write something like this the table appears, but this does not solve my problem with filtering:

 

{if ($smarty.get.id_category != 27)}

      {include file="./men_table.tpl" products=$products}

{/if}

Edited by andreiven (see edit history)
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...