Stech-Shop Posted October 27, 2014 Share Posted October 27, 2014 (edited) 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 October 27, 2014 by Stech-Shop (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted October 27, 2014 Share Posted October 27, 2014 If you want to use a textbox, you can look into the Customization tab in the product editor. This will not have any affect on the product price though. Link to comment Share on other sites More sharing options...
Stech-Shop Posted October 28, 2014 Author Share Posted October 28, 2014 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 More sharing options...
Stech-Shop Posted October 28, 2014 Author Share Posted October 28, 2014 because no one has a clue, so I need only one approach. Have found it here, only here is my radio checkbox worked but I need only one input field. http://www.prestarocket.com/blog/changer-la-selection-des-attributs-par-des-boutons-radio-dans-la-page-produit-de-prestashop/ Link to comment Share on other sites More sharing options...
Recommended Posts