Jump to content

Need fast HELP with out of stock and "please select" option


Recommended Posts

Wrrr.... I have problem:

 

1) I add default value to select group "Please select"

 

<select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};">
{if $id_attribute_group|intval == 2}
<option value="-1" title="Wybierz rozmiar" selected="selected">{l s='Wybierz rozmiar'}</option>
{/if}

{foreach from=$group.attributes key=id_attribute item=group_attribute}

 

And now, when I want display "Out of stock" message it's always give me it, because any combination and product with "Please select" attribute doesn't exist!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 

ANYONE?

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