Jump to content

Attribute input field - dropdown


Recommended Posts

Hello 

 

I have a question. How can I not be displayed as a dropdown, but as txt input field, where the customer can then enter its value and the price, as in the dropdown behaves the product version. 

 

I have since 1000 Variations and dropdown is too long, 

 

My example

 

Dropdown:



{assign var="groupName" value="group_$id_attribute_group"}
<select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};">
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<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:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'}:</label>
</p>
{/if}
{/foreach}


My approach 



<input type="text" value="group_{$id_attribute_group|intval}" name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};" />


but it does precious little to me ... 

 

perhaps someone has a approach for me. 

This must be completely removed is clear to me, I just need an approach 

 

perhaps someone can give me a tip 

 

greeting 

Stech-Shop

Edited by Stech-Shop (see edit history)
Link to comment
Share on other sites

Hello

 

So the input field should exactly behave like the dropdown. The price will adjust itself, if someone in the example: 100 enters into the input field, then the variation is 100 and the price to appear here. Actually, just like in the drop down that appears only halt but nothing can be input

 

greeting

Stech-Shop

Link to comment
Share on other sites

×
×
  • Create New...