Jump to content

Links appearing subject to what attributes are displayed.


Recommended Posts

The site I am building has two attribute drops downs that may or may not be used for a product they are two different colour options on for crystals and one for pearls. When any attribute is used I have added a links to a pop up which displays a colour chart for crystals and one for pearls.
The client is asking if the links to the colour charts can only appear if that attribute is used rather than both regardless of what attribute is used on the page.

Can it be done by using an if statment on the label or it's id?

Here is my code:

    

           {foreach from=$groups key=id_attribute_group item=group}
           {if $group.attributes|@count}


{$group.name|escape:'htmlall':'UTF-8'} :
               {assign var='groupName' value='group_'|cat:$id_attribute_group}
0}$('#resetImages').show('slow');{/if}">
                   {foreach from=$group.attributes key=id_attribute item=group_attribute}
{$group_attribute|escape:'htmlall':'UTF-8'}
                   {/foreach}


           {/if}
           {/foreach}

View Colour Charts:

Crystal |
Pearl

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