jbmd Posted April 16, 2014 Share Posted April 16, 2014 (edited) Hello, I wanted to get fast to datepicker in product detail and since I do not plan to use radio in Attributes I decided to give radio up and turn it into input date. I configured only one option (value) for radio button in Prestashop back end. In "product.tpl" I have this code: {elseif ($group.group_type == 'radio')} ---------- code start----- <ul> {foreach from=$group.attributes key=id_attribute item=group_attribute} <li> <input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();" /> <span>{$group_attribute|escape:'htmlall':'UTF-8'}</span> </li> {/foreach} </ul> {/if} ---------- code end----- When I change "<input type="radio" into "<input type="date" I have a problem - Add to cart button disappears and the value added to the cart is the value I preset in back and of Prestashop. Should I change anything else here? Appreciate any advice .. Edited April 16, 2014 by jbmd (see edit history) Link to comment Share on other sites More sharing options...
alexiscruz007 Posted March 14, 2015 Share Posted March 14, 2015 im workin in the same, are you in presta shop 1.5 or 1.6 Link to comment Share on other sites More sharing options...
Recommended Posts