Jump to content

Stock status near attribute value


McFloci

Recommended Posts

I would like to know how can I put the stock statuses "In Stock" or "Out of stock" near the value of an attribute in the select tab of a product`s page, so when it drops down the list of attributes to look like this "X - In Stock", "Y - Out of stock" etc.

I think I have to change something in this code, but I don`t know how to check if an attribute is in stock or not :

 0}$('#wrapResetImages').show('slow');{/if};">
                   {foreach from=$group.attributes key=id_attribute item=group_attribute}
{$group_attribute|escape:'htmlall':'UTF-8'}
                   {/foreach}

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