Jump to content

Frontend: Hide attribute value from dropdown select in product.tpl


idee

Recommended Posts

I want to hide the attributes with ID 1193 and 1194 from the dropdown select on the product age.

These two IDs are a combination: Color: blue (ID 1193)  |  Size: L (ID 1194)
SO we have to select dropdowns in that product, size and color.

I used that code in product.tpl, but it does not work:
 

 {if ($id_attribute != 1193) && ($id_attribute != 1194) }
		<option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'html':'UTF-8'}">{$group_attribute|escape:'html':'UTF-8'}</option>
{/if}

WHat  am I doing wrong here?

 

Thx for help

idee

Edited by idee (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...